Function at 0x1400055f0
Capabilities:
Check mutex on windows
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov rbx, rcx
mov dword [rbp + 0xd0], 1
xor esi, esi
lea r8, [0x14000ca18]
xor ecx, ecx
mov qword [rbp + 0xd8], rsi
xor edx, edx
mov qword [rbp + 0xe0], rsi
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000566e
lea r9d, [rsi + 0x40]
xor ecx, ecx
lea r8, str.Note:
lea rdx, str.WindowSave_is_already_running
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1400063ee
mov qword [rsp + 0x408], rdi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x410], r12
mov qword [rsp + 0x3d8], r14
mov qword [rsp + 0x3d0], r15
mov dword [rsp + 0x60], 8
mov dword [rsp + 0x64], 0x4000
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor r8d, r8d
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
xorps xmm0, xmm0
mov qword [0x140011a40], rbx
xor eax, eax
mov dword [rbp + 0x80], 0x50
mov qword [rbp + 0xc4], rax
mov edx, 0x83
mov dword [rbp + 0xcc], eax
mov rcx, rbx
lea rax, [0x1400074c0]
movups xmmword [rbp + 0x84], xmm0
mov qword [rbp + 0x88], rax
movups xmmword [rbp + 0x94], xmm0
mov qword [rbp + 0x98], rbx
movups xmmword [rbp + 0xa4], xmm0
movups xmmword [rbp + 0xb4], xmm0
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rbp + 0xa0], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
lea rdi, str.WindowSave
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0x80]
mov qword [rbp + 0xc0], rdi
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov r9d, 0x64
lea r8, [rbp + 0x1f0]
mov rcx, rbx
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rax, qword [0x140011a40]
lea r8, [rbp + 0x1f0]
mov qword [rsp + 0x58], rsi
mov r9d, 0x80000000
mov qword [rsp + 0x50], rax
mov rdx, rdi
mov qword [rsp + 0x48], rsi
xor ecx, ecx
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 0x258
mov dword [rsp + 0x30], 0x320
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea r12, [0x14000ca08]
mov rdi, rax
lea r15, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea r14, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
test rax, rax
je 0x1400061da
lea rcx, [rbp + 0xf0]
call fcn.140004dd0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 0x8b
mov dword [rsp + 0x28], esi
mov rcx, rax
mov dword [rsp + 0x20], 0x30
lea r9d, [rdx - 0x5b]
lea r8d, [r9 - 0x2f]
call qword [sym.imp.USER32.dll_LoadImageW]
mov edx, dword [rbp + 0x130]
lea r8, str.Hello
mov ecx, dword [rbp + 0x12c]
add edx, 0xffffffd0
mov qword [rsp + 0x58], rsi
mov r9d, 0x50000040
mov qword [rsp + 0x50], rsi
mov rbx, rax
mov qword [rsp + 0x48], 0x82
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x30
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x28], ecx
xor ecx, ecx
mov dword [rsp + 0x20], edx
lea rdx, str.BUTTON
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov r9, rbx
mov edx, 0xf7
mov rcx, rax
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rdi
lea rcx, [0x140011b70]
call fcn.140001b90
lea rdx, str.HELLO._Hello__this_is_a_test.
lea rcx, [rbp + 0x150]
call fcn.140001f90
mov rbx, rax
mov rdx, rax
cmp qword [rax + 0x18], 7
jbe 0x1400058b9
mov rdx, qword [rax]
mov rcx, qword [0x140011ba8]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140005905
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005900
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005e8d
mov rcx, r8
call fcn.140009a80
mov qword [rbx + 0x10], rsi
xor edx, edx
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [0x140011ba8]
lea r8d, [rdx + 1]
mov dword [0x140011bb0], 0xffff
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x140011b88]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, 0xa0a0a
mov dword [0x140011bb4], 0xa0a0a
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rcx, qword [0x140011ba8]
xor edx, edx
mov qword [0x140011b88], rax
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov r8d, dword [rbp + 0x12c]
mov r9d, 0x384
mov edx, dword [rbp + 0x128]
add r8d, 0x1f4
mov rcx, qword [0x140011ba8]
add edx, 0x14
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x140011ba8]
lea rdx, [0x140011b90]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [0x140011ba8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [0x140011b70]
call fcn.140001dc0
mov rdx, rdi
lea rcx, [0x140011a50]
call fcn.140001b90
lea rdx, str.HELLO._Hello__this_is_a_test.
lea rcx, [rbp + 0x150]
call fcn.140001f90
mov rbx, rax
mov rdx, rax
cmp qword [rax + 0x18], 7
jbe 0x140005a0b
mov rdx, qword [rax]
mov rcx, qword [0x140011a88]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140005a57
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005a52
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005e94
mov rcx, r8
call fcn.140009a80
mov qword [rbx + 0x10], rsi
xor edx, edx
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [0x140011a88]
lea r8d, [rdx + 1]
mov dword [0x140011a90], 0xffff
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x140011a68]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, 0x404040
mov dword [0x140011a94], 0x404040
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rcx, qword [0x140011a88]
xor edx, edx
mov qword [0x140011a68], rax
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov r8d, dword [rbp + 0x12c]
mov r9d, 0x384
mov edx, dword [rbp + 0x128]
add r8d, 0x208
mov rcx, qword [0x140011a88]
add edx, 0x14
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x140011a88]
lea rdx, [0x140011a70]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, str.Consolas
lea rcx, [rbp + 0x150]
call fcn.140001f90
mov r8, rax
lea rcx, [0x140011a50]
mov edx, 0x14
call fcn.140001cd0
mov rcx, qword [0x140011a88]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [0x140011a50]
call fcn.140001dc0
mov rdx, rdi
lea rcx, [0x140011aa0]
call fcn.140001b90
lea rdx, str.HELLO._Hello__this_is_a_test.
lea rcx, [rbp + 0x150]
call fcn.140001f90
mov rbx, rax
mov rdx, rax
cmp qword [rax + 0x18], 7
jbe 0x140005b84
mov rdx, qword [rax]
mov rcx, qword [0x140011ad8]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140005bd0
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005bcb
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005e9b
mov rcx, r8
call fcn.140009a80
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rcx, qword [0x140011ab8]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, 0x404040
mov dword [0x140011ae4], 0x404040
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rcx, qword [0x140011ad8]
xor edx, edx
mov qword [0x140011ab8], rax
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x140011ad8]
xor edx, edx
mov dword [0x140011ae0], 0xffff
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov r8d, dword [rbp + 0x12c]
mov r9d, 0x384
mov edx, dword [rbp + 0x128]
add r8d, 0x258
mov rcx, qword [0x140011ad8]
add edx, 0x1e
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x1e
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x140011ad8]
lea rdx, [0x140011ac0]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, str.Consolas
lea rcx, [rbp + 0x150]
call fcn.140001f90
mov r8, rax
lea rcx, [0x140011aa0]
mov edx, 0x1e
call fcn.140001cd0
lea rcx, [0x140011aa0]
call fcn.140001dc0
mov rcx, qword [0x140011ad8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, rdi
lea rcx, [0x140011af0]
call fcn.140002fa0
mov rcx, qword [0x140011af8]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, 0x202020
mov dword [0x140011b64], 0x202020
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rcx, qword [0x140011b58]
xor edx, edx
mov qword [0x140011af8], rax
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x140011b58]
xor edx, edx
mov dword [0x140011b60], 0x808000
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov r8d, dword [rbp + 0x12c]
mov r9d, 0x384
mov edx, dword [rbp + 0x128]
add r8d, 0x28a
mov rcx, qword [0x140011b58]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x190
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [0x140011b58]
lea rdx, [0x140011b40]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rdx, str.Consolas
lea rcx, [rbp + 0x150]
call fcn.140001f90
mov r8, rax
lea rcx, [0x140011af0]
call fcn.1400032c0
mov rcx, qword [0x140011b58]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, vtable.std::_Func_impl_no_alloc_void____cdecl___struct_ListBox____ptr64___void__struct_ListBox____ptr64_.0
mov qword [rbp + 0x170], rax
lea rdx, [rbp + 0x1b0]
lea rax, [0x140006cd0]
mov qword [rbp + 0x1e8], rsi
mov qword [rbp + 0x178], rax
lea rcx, [rbp + 0x170]
lea rax, [rbp + 0x170]
mov qword [rbp + 0x1a8], rax
call fcn.1400099c0
mov rcx, qword [rbp + 0x1a8]
mov r8, rax
mov qword [rbp + 0x1e8], rax
test rcx, rcx
je 0x140005e30
mov rax, qword [rcx]
lea rdx, [rbp + 0x170]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov r8, qword [rbp + 0x1e8]
mov rcx, rsi
mov qword [rbp + 0x1a8], rcx
mov r9, qword [0x140011b38]
lea rbx, [0x140011b00]
test r9, r9
je 0x140005eb9
mov rcx, r9
cmp r9, rbx
jne 0x140005eab
mov rax, qword [r9]
lea rdx, [rbp + 0x170]
call qword [rax + 8]
mov r8, qword [0x140011b38]
mov rcx, rax
mov qword [rbp + 0x1a8], rax
test r8, r8
je 0x140005ea2
mov rax, qword [r8]
cmp r8, rbx
mov rcx, r8
setne dl
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x1a8]
mov r8, qword [rbp + 0x1e8]
jmp 0x140005eb2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r8, qword [rbp + 0x1e8]
jmp 0x140005eb9
mov qword [rbp + 0x1a8], rcx
mov qword [0x140011b38], rsi
test r8, r8
je 0x140005f0c
lea rax, [rbp + 0x1b0]
cmp r8, rax
jne 0x140005f05
mov rax, qword [r8]
mov rdx, rbx
mov rcx, r8
call qword [rax + 8]
mov rcx, qword [rbp + 0x1e8]
mov qword [0x140011b38], rax
test rcx, rcx
je 0x140005efc
mov rax, qword [rcx]
lea rdx, [rbp + 0x1b0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rbp + 0x1a8]
jmp 0x140005f0c
mov qword [0x140011b38], r8
test rcx, rcx
je 0x140005f24
mov rax, qword [rcx]
lea rdx, [rbp + 0x170]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rcx, [rbp + 0x18]
mov qword [rbp - 0x70], r12
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
xor r9d, r9d
lea rdx, [rbp - 0x68]
xor r8d, r8d
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rdx, [0x14000ca10]
mov qword [rbp - 0x68], r14
lea rcx, [rbp - 0x70]
mov qword [rbp], rsi
mov dword [rbp + 8], 4
call fcn.140003c80
lea rdx, [0x140004c30]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x14000caec]
call fcn.140003c80
mov r8d, dword [rbp + 8]
xorps xmm0, xmm0
mov eax, r8d
mov qword [rbp + 0x160], rsi
and al, 0x22
mov qword [rbp + 0x168], 7
mov rcx, rsi
movups xmmword [rbp + 0x150], xmm0
mov word [rbp + 0x150], si
movups xmmword [rsp + 0x70], xmm0
cmp al, 2
je 0x140006021
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006021
cmp rdx, qword [rbp]
mov rax, qword [rbp - 0x48]
cmovb rdx, qword [rbp]
mov r9, qword [rax]
sub rdx, r9
mov rcx, r9
sar rdx, 1
jmp 0x14000605a
test r8b, 4
jne 0x140006091
mov rax, qword [rbp - 0x30]
mov rdx, rsi
mov r8, qword [rax]
test r8, r8
je 0x140006055
mov rax, qword [rbp - 0x50]
mov r9, qword [rax]
mov rax, qword [rbp - 0x18]
mov rcx, r9
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, r8
sar rdx, 1
jmp 0x14000605a
mov r9, qword [rsp + 0x70]
test rcx, rcx
je 0x140006091
lea rcx, [rbp + 0x150]
cmp rdx, 7
ja 0x14000608c
lea rbx, [rdx + rdx]
mov qword [rbp + 0x160], rdx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + rbx + 0x150], si
jmp 0x140006091
call fcn.140004470
cmp qword [rbp + 0x168], 7
lea rcx, [rbp + 0x150]
cmova rcx, qword [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp + 0x168]
cmp rdx, 7
jbe 0x1400060f7
mov rcx, qword [rbp + 0x150]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400060f2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400060f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009a80
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
mov qword [rbp - 0x68], r14
call fcn.140003b90
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
xor r9d, r9d
lea rcx, [rbp + 0x80]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140006193
nop word [rax + rax]
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x80]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp + 0x80]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140006160
mov rcx, qword [rbp + 0xf0]
test rcx, rcx
je 0x1400061da
mov rdx, qword [rbp + 0x100]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x1400061d5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400061d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009a80
lea rcx, [rbp + 0x18]
mov qword [rbp - 0x70], r12
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
xor r9d, r9d
lea rdx, [rbp - 0x68]
xor r8d, r8d
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64__bool____ptr64]
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rdx, str.Exit_Pump_n
mov qword [rbp - 0x68], r14
lea rcx, [rbp - 0x70]
mov qword [rbp], rsi
mov dword [rbp + 8], 4
call fcn.140003c80
mov r8d, dword [rbp + 8]
xorps xmm0, xmm0
mov eax, r8d
mov qword [rbp + 0x160], rsi
and al, 0x22
mov qword [rbp + 0x168], 7
mov rcx, rsi
movups xmmword [rbp + 0x150], xmm0
mov word [rbp + 0x150], si
movups xmmword [rsp + 0x70], xmm0
cmp al, 2
je 0x1400062a3
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400062a3
cmp rdx, qword [rbp]
mov rax, qword [rbp - 0x48]
cmovb rdx, qword [rbp]
mov r9, qword [rax]
sub rdx, r9
mov rcx, r9
sar rdx, 1
jmp 0x1400062dc
test r8b, 4
jne 0x140006313
mov rax, qword [rbp - 0x30]
mov rdx, rsi
mov r8, qword [rax]
test r8, r8
je 0x1400062d7
mov rax, qword [rbp - 0x50]
mov r9, qword [rax]
mov rax, qword [rbp - 0x18]
mov rcx, r9
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, r8
sar rdx, 1
jmp 0x1400062dc
mov r9, qword [rsp + 0x70]
test rcx, rcx
je 0x140006313
lea rcx, [rbp + 0x150]
cmp rdx, 7
ja 0x14000630e
lea rbx, [rdx + rdx]
mov qword [rbp + 0x160], rdx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + rbx + 0x150], si
jmp 0x140006313
call fcn.140004470
cmp qword [rbp + 0x168], 7
lea rcx, [rbp + 0x150]
cmova rcx, qword [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rbp + 0x168]
cmp rdx, 7
jbe 0x140006379
mov rcx, qword [rbp + 0x150]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006374
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006374
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009a80
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
mov qword [rbp - 0x68], r14
call fcn.140003b90
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov r14, qword [rsp + 0x3d8]
mov r12, qword [rsp + 0x410]
mov rdi, qword [rsp + 0x408]
mov r15, qword [rsp + 0x3d0]
xor eax, eax
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140009a60
add rsp, 0x3e0
pop rsi
pop rbx
pop rbp
ret