; ; common_assert_to_stderr from 0x1801313d8 to 0x180131527 (335 bytes) ; ; 3 xrefs: ; > _wassert @ 0x1801315bd ; > @ 0x180202eb8 ; > @ 0x180202ec4 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbp ; +0x0, 0x1801313d8 push rbx ; +0x2, 0x1801313da push rsi ; +0x3, 0x1801313db push rdi ; +0x4, 0x1801313dc push r14 ; +0x5, 0x1801313dd lea rbp, [rsp-3F0h] ; +0x7, 0x1801313df sub rsp, 4F0h ; +0xf, 0x1801313e7 mov rax, cs:__security_cookie ; +0x16, 0x1801313ee xor rax, rsp ; +0x1d, 0x1801313f5 mov [rbp+410h+var_30], rax ; +0x20, 0x1801313f8 mov rdi, rcx ; +0x27, 0x1801313ff mov [rsp+510h+var_4C8], rcx ; +0x2a, 0x180131402 mov ecx, 0FFFFFFF4h; nStdHandle ; +0x2f, 0x180131407 mov [rsp+510h+var_4D0], rdx ; +0x34, 0x18013140c mov r14d, r8d ; +0x39, 0x180131411 mov [rsp+510h+var_4D8], r8d ; +0x3c, 0x180131414 mov rsi, rdx ; +0x41, 0x180131419 call cs:GetStdHandle ; +0x44, 0x18013141c mov rbx, rax ; +0x4a, 0x180131422 lea rcx, [rax-1] ; +0x4d, 0x180131425 cmp rcx, 0FFFFFFFFFFFFFFFDh ; +0x51, 0x180131429 ja short loc_1801314A1 ; +0x55, 0x18013142d mov rcx, rax; hFile ; +0x57, 0x18013142f call cs:GetFileType ; +0x5a, 0x180131432 cmp eax, 2 ; +0x60, 0x180131438 jnz short loc_1801314A1 ; +0x63, 0x18013143b mov [rsp+510h+var_4E8], r14d ; +0x65, 0x18013143d lea r8, Format ; +0x6a, 0x180131442 mov r9, rdi ; +0x71, 0x180131449 mov [rsp+510h+lpReserved], rsi ; +0x74, 0x18013144c mov edx, 240h; BufferCount ; +0x79, 0x180131451 lea rcx, [rsp+510h+Buffer]; Buffer ; +0x7e, 0x180131456 call sprintf_s ; +0x83, 0x18013145b xor edi, edi ; +0x88, 0x180131460 test eax, eax ; +0x8a, 0x180131462 js short loc_1801314A1 ; +0x8c, 0x180131464 lea rcx, [rsp+510h+Buffer] ; +0x8e, 0x180131466 or rax, 0FFFFFFFFFFFFFFFFh ; +0x93, 0x18013146b inc rax ; +0x97, 0x18013146f cmp [rcx+rax*2], di ; +0x9a, 0x180131472 jnz short loc_18013146F ; +0x9e, 0x180131476 lea r9, [rsp+510h+NumberOfCharsWritten]; lpNumberOfCharsWritten ; +0xa0, 0x180131478 mov [rsp+510h+NumberOfCharsWritten], edi ; +0xa5, 0x18013147d mov r8d, eax; nNumberOfCharsToWrite ; +0xa9, 0x180131481 mov [rsp+510h+lpReserved], rdi; lpReserved ; +0xac, 0x180131484 lea rdx, [rsp+510h+Buffer]; lpBuffer ; +0xb1, 0x180131489 mov rcx, rbx; hConsoleOutput ; +0xb6, 0x18013148e call cs:WriteConsoleW ; +0xb9, 0x180131491 test eax, eax ; +0xbf, 0x180131497 jz short loc_1801314A1 ; +0xc1, 0x180131499 call abort ; +0xc3, 0x18013149b db 0CCh ; +0xc8, 0x1801314a0 mov ecx, 2; Ix ; +0xc9, 0x1801314a1 call __acrt_iob_func ; +0xce, 0x1801314a6 mov ecx, [rax+14h] ; +0xd3, 0x1801314ab test ecx, 4C0h ; +0xd6, 0x1801314ae jnz short loc_1801314D1 ; +0xdc, 0x1801314b4 mov ecx, 2; Ix ; +0xde, 0x1801314b6 call __acrt_iob_func ; +0xe3, 0x1801314bb xor r9d, r9d; Size ; +0xe8, 0x1801314c0 mov rcx, rax; Stream ; +0xeb, 0x1801314c3 xor edx, edx; Buffer ; +0xee, 0x1801314c6 lea r8d, [r9+4]; Mode ; +0xf0, 0x1801314c8 call setvbuf ; +0xf4, 0x1801314cc xor ecx, ecx ; +0xf9, 0x1801314d1 call sub_180131548 ; +0xfb, 0x1801314d3 mov ecx, 2; Ix ; +0x100, 0x1801314d8 mov [rsp+510h+var_4C0], rax ; +0x105, 0x1801314dd call __acrt_iob_func ; +0x10a, 0x1801314e2 mov [rsp+510h+var_4B8], rax ; +0x10f, 0x1801314e7 lea r9, [rsp+510h+var_4D0] ; +0x114, 0x1801314ec lea rax, [rsp+510h+var_4D8] ; +0x119, 0x1801314f1 lea r8, [rsp+510h+var_4C8] ; +0x11e, 0x1801314f6 mov [rsp+510h+lpReserved], rax ; +0x123, 0x1801314fb lea rdx, [rsp+510h+var_4C0] ; +0x128, 0x180131500 lea rcx, [rsp+510h+var_4B8] ; +0x12d, 0x180131505 call sub_180131528 ; +0x132, 0x18013150a mov ecx, 2; Ix ; +0x137, 0x18013150f call __acrt_iob_func ; +0x13c, 0x180131514 mov rcx, rax; Stream ; +0x141, 0x180131519 call fflush ; +0x144, 0x18013151c call abort ; +0x149, 0x180131521 db 0CCh ; +0x14e, 0x180131526