Function at 0x401780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x360
mov eax, dword [0x407014]
xor eax, ebp
mov dword [esp + 0x358], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x7c], 0x4000
mov dword [esp + 0x78], 8
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x4018d1
mov eax, dword [ebp + 8]
mov esi, 1
mov dword [esp + 8], 0x4050e8
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x3c], 0x4050d8
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0xffffffff
cmp eax, 0xa
jge 0x4018ee
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 0x4050e8
test eax, eax
je 0x40189c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4018ad
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4018bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x3c]
mov dword [0x407414], 0
call section..text
jmp 0x4018d6
mov esi, 1
mov ecx, dword [esp + 0x358]
xor ecx, ebp
call fcn.00403e20
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
movups xmm0, xmmword [ecx + 4]
movups xmmword [esp + 0xc], xmm0
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx + 0x18]
lea ecx, [esp + 0x2b0]
mov dword [esp + 0x2c4], 7
mov dword [esp + 0x2c0], 0
mov word [esp + 0x2b0], 0
mov dword [esp], ecx
call fcn.004030d0
lea edi, [esp + 0x268]
mov dword [esp + 0x208], 0x405100
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esp + 0x268], 0x40514c
lea ebx, [esp + 0x218]
lea edx, [esp + 0x208]
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], 0x4050fc
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x204], ecx
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], 0x405150
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0x204], ecx
mov dword [esp + 0x214], 0
mov dword [esp + 0x210], 0
mov eax, dword [esp + 0x208]
mov ecx, dword [eax + 4]
add ecx, edx
push 0
push ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::init_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t_____bool_]
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], 0x4050fc
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x204], ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov ebx, dword [esp + 0x2c0]
cmp dword [esp + 0x2c4], 7
mov dword [esp + 0x218], 0x405110
jbe 0x401a3a
mov eax, dword [esp + 0x2b0]
mov dword [esp], eax
test ebx, ebx
js 0x4026a4
jne 0x401a58
mov ebx, edi
mov eax, 2
mov dword [esp + 0x250], 0
jmp 0x401aaa
mov ecx, ebx
call fcn.00402fc0
mov esi, eax
lea edi, [ebx + ebx]
push edi
push dword [esp + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + ebx*2]
sar edi, 1
lea ebx, [esp + 0x268]
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x224]
mov dword [eax], esi
mov eax, dword [esp + 0x234]
mov dword [eax], esi
mov esi, 1
mov eax, dword [esp + 0x244]
mov dword [eax], edi
mov eax, 3
lea ecx, [esp + 0x2b0]
mov dword [esp + 0x254], eax
call fcn.00403010
lea eax, [esp + 0x24]
lea edi, [esp + 0x208]
mov ecx, edi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___void___]
mov eax, dword [esp + 0x208]
add edi, dword [eax + 4]
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
test al, al
je 0x401c6a
mov edi, ebx
xor ebx, ebx
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], 0x4050fc
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x204], ecx
mov dword [esp + 0x218], 0x405110
test byte [esp + 0x254], 1
je 0x401b87
mov ecx, dword [esp + 0x238]
lea eax, [edi - 0x60]
mov ecx, dword [ecx]
test ecx, ecx
je 0x401b42
add eax, 0x40
jmp 0x401b4e
mov ecx, dword [esp + 0x234]
add eax, 0x3c
mov ecx, dword [ecx]
mov eax, dword [eax]
mov eax, dword [eax]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x224]
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, 0x1000
jb 0x401b7d
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x402870
add eax, 0x23
push eax
push ecx
call fcn.00403242
add esp, 8
mov eax, dword [esp + 0x224]
lea ecx, [edi - 0x50]
mov dword [eax], 0
mov eax, dword [esp + 0x234]
mov dword [eax], 0
mov eax, dword [esp + 0x244]
mov dword [eax], 0
mov eax, dword [esp + 0x228]
mov dword [eax], 0
mov eax, dword [esp + 0x238]
mov dword [eax], 0
mov eax, dword [esp + 0x248]
mov dword [eax], 0
mov dword [esp + 0x250], 0
and byte [esp + 0x254], 0xfe
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
test bl, bl
je 0x401885
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401c18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x401c58
push 1
push dword [esp + 0x3c]
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
setne cl
cmp eax, 0xc0
setne al
and al, cl
movzx esi, al
jmp 0x401885
mov dword [esp + 8], 0x4050e8
mov esi, 1
jmp 0x40189c
mov eax, dword [ebp + 0xc]
mov ecx, 7
lea ebx, [esp + 0x2b0]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x2c4], ecx
mov ecx, ebx
mov dword [esp + 0x2c0], 0
mov word [esp + 0x2b0], 0
call fcn.004030d0
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x160], 0x405100
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esp + 0x1c0], 0x40514c
lea edx, [esp + 0x160]
lea esi, [esp + 0x170]
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], 0x4050fc
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x15c], ecx
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], 0x405150
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0x15c], ecx
mov dword [esp + 0x16c], 0
mov dword [esp + 0x168], 0
mov eax, dword [esp + 0x160]
mov ecx, dword [eax + 4]
add ecx, edx
push 0
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::init_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t_____bool_]
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], 0x4050fc
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x15c], ecx
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov edi, dword [esp + 0x2c0]
cmp dword [esp + 0x2c4], 7
mov dword [esp + 0x170], 0x405110
jbe 0x401da1
mov ebx, dword [esp + 0x2b0]
test edi, edi
js 0x4026a4
jne 0x401dbd
mov eax, 2
mov dword [esp + 0x1a8], 0
jmp 0x401e06
mov ecx, edi
call fcn.00402fc0
mov esi, eax
lea eax, [edi + edi]
mov dword [esp], eax
push eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + edi*2]
mov ecx, dword [esp]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x17c]
sar ecx, 1
mov dword [eax], esi
mov eax, dword [esp + 0x18c]
mov dword [eax], esi
mov eax, dword [esp + 0x19c]
mov dword [eax], ecx
mov eax, 3
lea ecx, [esp + 0x2b0]
mov esi, 1
lea edi, [esp + 0x268]
mov dword [esp + 0x1ac], eax
call fcn.00403010
lea ebx, [esp + 0x160]
lea eax, [esp + 0x30]
mov ecx, ebx
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___void___]
mov eax, dword [esp + 0x160]
add ebx, dword [eax + 4]
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
test al, al
je 0x401f77
xor ebx, ebx
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], 0x4050fc
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x15c], ecx
mov dword [esp + 0x170], 0x405110
test byte [esp + 0x1ac], 1
je 0x401ef4
mov ecx, dword [esp + 0x190]
lea eax, [esp + 0x1c0]
add eax, 0xffffffa0
mov ecx, dword [ecx]
test ecx, ecx
je 0x401eaf
add eax, 0x40
jmp 0x401ebb
mov ecx, dword [esp + 0x18c]
add eax, 0x3c
mov ecx, dword [ecx]
mov eax, dword [eax]
mov eax, dword [eax]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x17c]
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, 0x1000
jb 0x401eea
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x402870
add eax, 0x23
push eax
push ecx
call fcn.00403242
add esp, 8
lea eax, [esp + 0x1c0]
lea ecx, [eax - 0x50]
mov eax, dword [esp + 0x17c]
mov dword [eax], 0
mov eax, dword [esp + 0x18c]
mov dword [eax], 0
mov eax, dword [esp + 0x19c]
mov dword [eax], 0
mov eax, dword [esp + 0x180]
mov dword [eax], 0
mov eax, dword [esp + 0x190]
mov dword [eax], 0
mov eax, dword [esp + 0x1a0]
mov dword [eax], 0
mov dword [esp + 0x1a8], 0
and byte [esp + 0x1ac], 0xfe
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [esp + 0x1c0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
jmp 0x401aef
lea ebx, [esp + 0x2b0]
push 0x4052d0
mov eax, dword [ebp + 0xc]
push dword [eax + 0x20]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
add esp, 8
test eax, eax
je 0x401fc6
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x401fc6
mov edi, eax
push str.SetCurrentProcessExplicitAppUserModelID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401fbf
mov ecx, dword [ebp + 0xc]
push dword [ecx + 0x20]
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0xc]
mov ecx, ebx
mov edx, dword [eax + 0x24]
mov eax, 7
mov dword [esp + 0x2c0], 0
mov dword [esp + 0x2c4], eax
mov word [esp + 0x2b0], 0
call fcn.004030d0
lea ecx, [esp + 0x118]
mov dword [esp + 0xb8], 0x405100
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esp + 0x118], 0x40514c
lea edx, [esp + 0xb8]
lea esi, [esp + 0xc8]
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], 0x4050fc
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0xb4], ecx
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], 0x405150
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0xb4], ecx
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax + 4]
add ecx, edx
push 0
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::init_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t_____bool_]
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], 0x4050fc
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0xb4], ecx
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov edi, dword [esp + 0x2c0]
cmp dword [esp + 0x2c4], 7
mov dword [esp + 0xc8], 0x405110
jbe 0x4020f6
mov ebx, dword [esp + 0x2b0]
test edi, edi
js 0x4026a4
jne 0x402112
mov eax, 2
mov dword [esp + 0x100], 0
jmp 0x40215b
mov ecx, edi
call fcn.00402fc0
mov esi, eax
lea eax, [edi + edi]
mov dword [esp], eax
push eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + edi*2]
mov ebx, dword [esp]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0xd4]
sar ebx, 1
mov dword [eax], esi
mov eax, dword [esp + 0xe4]
mov dword [eax], esi
mov eax, dword [esp + 0xf4]
mov dword [eax], ebx
mov eax, 3
lea ecx, [esp + 0x2b0]
mov dword [esp + 0x104], eax
call fcn.00403010
lea esi, [esp + 0xb8]
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int__]
mov eax, dword [esp + 0xb8]
add esi, dword [eax + 4]
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
xor ebx, ebx
test al, al
mov esi, 1
lea edi, [esp + 0x268]
je 0x4022d8
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], 0x4050fc
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0xb4], ecx
mov dword [esp + 0xc8], 0x405110
test byte [esp + 0x104], 1
je 0x402255
mov ecx, dword [esp + 0xe8]
lea eax, [esp + 0x118]
add eax, 0xffffffa0
mov ecx, dword [ecx]
test ecx, ecx
je 0x402204
add eax, 0x40
jmp 0x402210
mov ecx, dword [esp + 0xe4]
add eax, 0x3c
mov ecx, dword [ecx]
mov eax, dword [eax]
mov eax, dword [eax]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0xd4]
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, 0x1000
jb 0x40223f
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x402870
add eax, 0x23
push eax
push ecx
call fcn.00403242
add esp, 8
mov esi, 1
lea edi, [esp + 0x268]
lea eax, [esp + 0x118]
lea ecx, [eax - 0x50]
mov eax, dword [esp + 0xd4]
mov dword [eax], 0
mov eax, dword [esp + 0xe4]
mov dword [eax], 0
mov eax, dword [esp + 0xf4]
mov dword [eax], 0
mov eax, dword [esp + 0xd8]
mov dword [eax], 0
mov eax, dword [esp + 0xe8]
mov dword [eax], 0
mov eax, dword [esp + 0xf8]
mov dword [eax], 0
mov dword [esp + 0x100], 0
and byte [esp + 0x104], 0xfe
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [esp + 0x118]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
jmp 0x401e55
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0xa0]
sbb ebx, ebx
mov dword [esp], ecx
not ebx
or ebx, dword [esp + 0x38]
mov edx, dword [eax + 0x28]
mov eax, 7
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], eax
mov word [esp + 0xa0], 0
call fcn.004030d0
test ebx, ebx
mov edi, 0x80070057
mov dword [esp + 4], ebx
je 0x4027e1
cmp dword [esp + 0xb0], 0
je 0x4027e1
cmp dword [esp + 0x68], 0
jne 0x40264f
lea ecx, [esp + 0x310]
mov dword [esp + 0x2b0], 0x405100
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esp + 0x310], 0x40514c
lea esi, [esp + 0x2c0]
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], 0x4050fc
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x2ac], ecx
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], 0x405150
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0x2ac], ecx
mov dword [esp + 0x2bc], 0
mov dword [esp + 0x2b8], 0
mov eax, dword [esp + 0x2b0]
mov ecx, dword [eax + 4]
lea eax, [esp + 0x2b0]
add ecx, eax
push 0
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::init_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t_____bool_]
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], 0x4050fc
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x2ac], ecx
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov edi, dword [esp + 0xb0]
cmp dword [esp + 0xb4], 7
mov dword [esp + 0x2c0], 0x405110
jbe 0x40244e
mov eax, dword [esp + 0xa0]
mov dword [esp], eax
test edi, edi
js 0x4026a4
jne 0x402659
mov eax, 2
mov dword [esp + 0x2f8], 0
mov dword [esp + 0x2fc], eax
lea eax, [esp + 0x9c]
lea esi, [esp + 0x2b0]
mov dword [esp + 0x9c], 0
mov ecx, esi
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___void___]
mov eax, dword [esp + 0x2b0]
add esi, dword [eax + 4]
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
mov edi, 0x80070057
test al, al
jne 0x4026c9
push 0
push 0
push 0
push 2
push dword [esp + 0xac]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x402648
mov esi, eax
xorps xmm0, xmm0
lea eax, [esp + 0x80]
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x98], 0
movaps xmmword [esp + 0x80], xmm0
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40251b
mov eax, dword [esp + 0x8c]
je 0x4026bd
test eax, eax
je 0x4026bd
mov edi, 0x80070057
cmp eax, 0x11
jb 0x4026c2
shr eax, 1
mov ecx, esi
mov dword [esp + 0x48], esi
mov edx, esi
add ecx, eax
add eax, 0xfffffff8
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
cmp dword [esi], 0
jne 0x4026c2
cmp dword [esi + 4], 0x10
jne 0x4026c2
cmp dword [esi + 8], 0
je 0x4026bd
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4026bd
cmp dword [esi + 0x10], 0
je 0x4026bd
cmp dword [esi + 0x14], 0
je 0x4026bd
mov dword [esp + 0x50], eax
mov eax, dword [esp + 4]
lea ebx, [esp + 0x3c]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x6c]
push 0
push 0xffffffffffffffff
push ebx
push 0x401080
push dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x4026bd
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4026a9
cmp dword [esp + 0x4c], 0
je 0x4026a9
mov dword [eax], 1
mov ecx, ebx
mov eax, dword [esp + 0x44]
mov dword [eax + 4], 1
mov eax, dword [esp + 0x44]
mov byte [eax + 8], 1
mov dword [esp], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], esi
mov eax, dword [esi + 8]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
call dword [eax]
test eax, eax
js 0x402811
mov eax, dword [esp + 0x3c]
mov ecx, ebx
call dword [eax + 0xc]
xor edi, edi
jmp 0x4026c9
mov edi, 0x80004005
jmp 0x4026c9
mov edi, 0xc1f30002
jmp 0x4027e1
mov ecx, edi
call fcn.00402fc0
lea ebx, [edi + edi]
mov esi, eax
push ebx
push dword [esp + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [esi + edi*2]
sar ebx, 1
mov dword [esp + 0x2f8], eax
mov eax, dword [esp + 0x2cc]
mov dword [eax], esi
mov eax, dword [esp + 0x2dc]
mov dword [eax], esi
mov eax, dword [esp + 0x2ec]
mov dword [eax], ebx
mov eax, 3
jmp 0x40246c
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_
push 0xffffffffffffffff
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov dword [esp + 0x6c], 0
mov edi, 0x80004005
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], 0x4050fc
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x2ac], ecx
mov dword [esp + 0x2c0], 0x405110
test byte [esp + 0x2fc], 1
je 0x402768
mov ecx, dword [esp + 0x2e0]
lea eax, [esp + 0x310]
add eax, 0xffffffa0
mov ecx, dword [ecx]
test ecx, ecx
je 0x402723
add eax, 0x40
jmp 0x40272f
mov ecx, dword [esp + 0x2dc]
add eax, 0x3c
mov ecx, dword [ecx]
mov eax, dword [eax]
mov eax, dword [eax]
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x2cc]
mov ecx, dword [ecx]
sub eax, ecx
cmp eax, 0x1000
jb 0x40275e
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x402870
add eax, 0x23
push eax
push ecx
call fcn.00403242
add esp, 8
mov eax, dword [esp + 0x2cc]
lea esi, [esp + 0x310]
lea ecx, [esi - 0x50]
mov dword [eax], 0
mov eax, dword [esp + 0x2dc]
mov dword [eax], 0
mov eax, dword [esp + 0x2ec]
mov dword [eax], 0
mov eax, dword [esp + 0x2d0]
mov dword [eax], 0
mov eax, dword [esp + 0x2e0]
mov dword [eax], 0
mov eax, dword [esp + 0x2f0]
mov dword [eax], 0
mov dword [esp + 0x2f8], 0
and byte [esp + 0x2fc], 0xfe
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
lea ecx, [esp + 0xa0]
call fcn.00403010
test edi, edi
js 0x40280d
lea eax, [esp + 8]
mov bl, 1
mov dword [0x407414], eax
mov esi, 1
lea edi, [esp + 0x268]
jmp 0x4021aa
xor ebx, ebx
jmp 0x4027fc
mov ecx, dword [esp]
mov edi, eax
lea eax, [esp + 0x58]
mov byte [ecx + 8], 0
mov dword [esp + 0x68], 0
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x70], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
push 0xffffffffffffffff
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov esi, ebx
test ebx, ebx
mov dword [esp + 0x6c], 0
jne 0x4026c2
jmp 0x4026c9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3