Function at 0x4017a0
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 [0x406014]
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 0x4018aa
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x4040e8
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x3c], 0x4040d8
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x74], 0xffffffff
cmp eax, 9
jg 0x4018b4
mov esi, 1
jmp 0x40272d
mov esi, 1
jmp 0x402777
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 edi, dword [ecx + 0x18]
mov dword [esp + 0x2c4], 7
mov dword [esp + 0x2c0], 0
mov word [esp + 0x2b0], 0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x40190f
lea ecx, [esp + 0x2b0]
mov edx, esi
push edi
call fcn.00403010
add esp, 4
jmp 0x401936
mov eax, esi
mov dword [esp + 0x2c0], esi
lea ecx, [esp + 0x2b0]
add eax, esi
push eax
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + esi*2 + 0x2b0], 0
lea ecx, [esp + 0x268]
mov dword [esp + 0x208], 0x40414c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esp + 0x268], 0x40413c
lea edi, [esp + 0x208]
lea ebx, [esp + 0x218]
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], 0x4040f4
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], 0x404140
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, edi
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], 0x4040f4
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 eax, dword [esp + 0x2c4]
mov esi, dword [esp + 0x2c0]
mov dword [esp + 0x218], 0x404100
cmp eax, 7
jbe 0x401ab7
mov ecx, dword [esp + 0x2b0]
test esi, esi
js 0x401fd8
je 0x401ac7
lea edi, [esi + esi]
mov dword [esp], ecx
cmp edi, 0x1000
jae 0x402454
test edi, edi
je 0x4027e2
push edi
call fcn.0040313d
add esp, 4
mov ebx, eax
push edi
push dword [esp + 4]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebx + esi*2]
sar edi, 1
mov ecx, 3
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x224]
mov dword [eax], ebx
mov eax, dword [esp + 0x234]
mov dword [eax], ebx
mov eax, dword [esp + 0x244]
mov dword [eax], edi
lea edi, [esp + 0x208]
mov eax, dword [esp + 0x2c4]
jmp 0x401ad7
lea ecx, [esp + 0x2b0]
test esi, esi
jns 0x401a46
jmp 0x401fd8
mov ecx, 2
mov dword [esp + 0x250], 0
cmp eax, 8
mov dword [esp + 0x254], ecx
jb 0x401b04
mov ecx, dword [esp + 0x2b0]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jae 0x402479
push edx
push ecx
call fcn.00403172
add esp, 8
lea eax, [esp + 0x24]
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 0x401b2e
xor ebx, ebx
jmp 0x402682
mov eax, dword [ebp + 0xc]
mov ecx, 7
mov esi, dword [eax + 0x1c]
mov dword [esp + 0x2c4], ecx
mov dword [esp + 0x2c0], 0
mov word [esp + 0x2b0], 0
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x401b7a
lea ecx, [esp + 0x2b0]
mov edx, edi
push esi
call fcn.00403010
add esp, 4
jmp 0x401ba1
mov eax, edi
mov dword [esp + 0x2c0], edi
lea ecx, [esp + 0x2b0]
add eax, edi
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + edi*2 + 0x2b0], 0
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x160], 0x40414c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esp + 0x1c0], 0x40413c
lea ebx, [esp + 0x160]
lea edi, [esp + 0x170]
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], 0x4040f4
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], 0x404140
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, ebx
push 0
push edi
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], 0x4040f4
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x15c], ecx
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov eax, dword [esp + 0x2c4]
mov esi, dword [esp + 0x2c0]
mov dword [esp + 0x170], 0x404100
cmp eax, 7
jbe 0x401d22
mov ecx, dword [esp + 0x2b0]
test esi, esi
js 0x401fd8
je 0x401d32
lea ebx, [esi + esi]
mov dword [esp], ecx
cmp ebx, 0x1000
jae 0x402498
test ebx, ebx
je 0x4027e9
push ebx
call fcn.0040313d
add esp, 4
mov edi, eax
push ebx
push dword [esp + 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + esi*2]
sar ebx, 1
mov ecx, 3
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x17c]
mov dword [eax], edi
mov eax, dword [esp + 0x18c]
mov dword [eax], edi
mov eax, dword [esp + 0x19c]
mov dword [eax], ebx
lea ebx, [esp + 0x160]
mov eax, dword [esp + 0x2c4]
jmp 0x401d42
lea ecx, [esp + 0x2b0]
test esi, esi
jns 0x401cb1
jmp 0x401fd8
mov ecx, 2
mov dword [esp + 0x1a8], 0
cmp eax, 8
mov dword [esp + 0x1ac], ecx
jb 0x401d6f
mov ecx, dword [esp + 0x2b0]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jae 0x4024bd
push edx
push ecx
call fcn.00403172
add esp, 8
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 0x401d99
xor ebx, ebx
jmp 0x40262d
push 0x4042d0
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 0x401de1
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x401de1
mov edi, eax
push str.SetCurrentProcessExplicitAppUserModelID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401dda
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 esi, dword [eax + 0x24]
mov eax, 7
mov dword [esp + 0x2c0], 0
mov dword [esp + 0x2c4], eax
mov word [esp + 0x2b0], 0
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x401e2d
lea ecx, [esp + 0x2b0]
mov edx, edi
push esi
call fcn.00403010
add esp, 4
jmp 0x401e54
mov eax, edi
mov dword [esp + 0x2c0], edi
lea ecx, [esp + 0x2b0]
add eax, edi
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + edi*2 + 0x2b0], 0
lea ecx, [esp + 0x118]
mov dword [esp + 0xb8], 0x40414c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esp + 0x118], 0x40413c
lea ebx, [esp + 0xb8]
lea edi, [esp + 0xc8]
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], 0x4040f4
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], 0x404140
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, ebx
push 0
push edi
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], 0x4040f4
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0xb4], ecx
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov eax, dword [esp + 0x2c4]
mov esi, dword [esp + 0x2c0]
mov dword [esp + 0xc8], 0x404100
cmp eax, 7
jbe 0x401fcd
mov ecx, dword [esp + 0x2b0]
test esi, esi
js 0x401fd8
je 0x401fdd
lea ebx, [esi + esi]
mov dword [esp], ecx
cmp ebx, 0x1000
jae 0x4024dc
test ebx, ebx
je 0x4027f0
push ebx
call fcn.0040313d
add esp, 4
mov edi, eax
push ebx
push dword [esp + 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + esi*2]
sar ebx, 1
mov ecx, 3
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0xd4]
mov dword [eax], edi
mov eax, dword [esp + 0xe4]
mov dword [eax], edi
mov eax, dword [esp + 0xf4]
mov dword [eax], ebx
lea ebx, [esp + 0xb8]
mov eax, dword [esp + 0x2c4]
jmp 0x401fed
lea ecx, [esp + 0x2b0]
test esi, esi
jns 0x401f5c
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_
mov ecx, 2
mov dword [esp + 0x100], 0
cmp eax, 8
mov dword [esp + 0x104], ecx
jb 0x40201a
mov ecx, dword [esp + 0x2b0]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jae 0x402501
push edx
push ecx
call fcn.00403172
add esp, 8
lea eax, [esp + 0x38]
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___unsigned_long_int__]
mov eax, dword [esp + 0xb8]
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 0x402044
xor ebx, ebx
jmp 0x4025d8
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
mov eax, dword [ebp + 0xc]
sbb esi, esi
not esi
or esi, dword [esp + 0x38]
mov ebx, dword [eax + 0x28]
mov eax, 7
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], eax
mov word [esp + 0xa0], 0
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x4020a1
lea ecx, [esp + 0xa0]
mov edx, edi
push ebx
call fcn.00403010
add esp, 4
jmp 0x4020c8
mov eax, edi
mov dword [esp + 0xb0], edi
lea ecx, [esp + 0xa0]
add eax, edi
push eax
push ebx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + edi*2 + 0xa0], 0
test esi, esi
mov ebx, 0x80070057
je 0x402598
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x402598
cmp dword [esp + 0x68], 0
mov ebx, 0xc1f30002
jne 0x402598
lea ecx, [esp + 0x310]
mov dword [esp], eax
mov dword [esp + 0x2b0], 0x40414c
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [esp + 0x310], 0x40413c
lea edx, [esp + 0x2b0]
lea edi, [esp + 0x2c0]
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], 0x4040f4
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], 0x404140
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]
add ecx, edx
push 0
push edi
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], 0x4040f4
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x2ac], ecx
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
cmp dword [esp + 0xb4], 7
mov dword [esp + 0x2c0], 0x404100
jbe 0x4021f4
mov ecx, dword [esp + 0xa0]
jmp 0x4021fb
lea ecx, [esp + 0xa0]
mov eax, dword [esp]
test eax, eax
js 0x401fd8
lea ebx, [eax + eax]
mov dword [esp + 4], ecx
cmp ebx, 0x1000
jae 0x4027bd
test ebx, ebx
je 0x4027f7
push ebx
call fcn.0040313d
add esp, 4
mov edi, eax
push ebx
push dword [esp + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
sar ebx, 1
lea eax, [edi + eax*2]
mov dword [esp + 0x2f8], eax
mov eax, dword [esp + 0x2cc]
mov dword [eax], edi
mov eax, dword [esp + 0x2dc]
mov dword [eax], edi
lea edi, [esp + 0x2b0]
mov eax, dword [esp + 0x2ec]
mov ecx, edi
mov dword [eax], ebx
lea eax, [esp + 0x9c]
mov dword [esp + 0x2fc], 3
mov dword [esp + 0x9c], 0
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 edi, dword [eax + 4]
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
mov ebx, 0x80070057
test al, al
jne 0x402543
push 0
push 0
push 0
push 2
push dword [esp + 0xac]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x40244a
mov edi, eax
xorps xmm0, xmm0
mov dword [esp + 0x94], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x98], 0
lea eax, [esp + 0x80]
movaps xmmword [esp + 0x80], xmm0
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402537
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x402537
mov ebx, 0x80070057
cmp eax, 0x11
jb 0x40253c
shr eax, 1
mov ecx, edi
mov dword [esp + 0x48], edi
add ecx, eax
add eax, 0xfffffff8
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
cmp dword [edi], 0
jne 0x40253c
cmp dword [edi + 4], 0x10
jne 0x40253c
cmp dword [edi + 8], 0
je 0x402537
mov eax, dword [edi + 0xc]
mov dword [esp], edi
test eax, eax
je 0x402534
mov ecx, dword [esp]
cmp dword [ecx + 0x10], 0
je 0x402534
mov ecx, dword [esp]
cmp dword [ecx + 0x14], 0
je 0x402534
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
lea eax, [esp + 0x6c]
push 0
push 0xffffffffffffffff
push ecx
push 0x401080
mov ecx, dword [esp + 0x10]
push dword [ecx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x402534
mov eax, dword [esp + 0x44]
test eax, eax
je 0x402520
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x402520
mov dword [eax], 1
mov ecx, dword [esp]
mov eax, dword [esp + 0x44]
mov dword [eax + 4], 1
mov edi, dword [esp + 0x44]
mov byte [edi + 8], 1
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], ecx
mov eax, dword [ecx + 8]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x14]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x64], eax
lea eax, [esp + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x74], esi
mov eax, dword [esp + 0x3c]
call dword [eax]
test eax, eax
js 0x4027fe
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
call dword [eax + 0xc]
xor ebx, ebx
jmp 0x402543
mov ebx, 0x80004005
jmp 0x402543
lea eax, [edi + 0x23]
cmp edi, 0xffffffdc
mov ecx, 0xffffffff
cmovbe ecx, eax
push ecx
call fcn.0040313d
add esp, 4
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x401a6d
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x402858
add eax, eax
add eax, 0x25
mov edx, eax
jmp 0x401afa
lea eax, [ebx + 0x23]
cmp ebx, 0xffffffdc
mov ecx, 0xffffffff
cmovbe ecx, eax
push ecx
call fcn.0040313d
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x401cd8
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x402858
add eax, eax
add eax, 0x25
mov edx, eax
jmp 0x401d65
lea eax, [ebx + 0x23]
cmp ebx, 0xffffffdc
mov ecx, 0xffffffff
cmovbe ecx, eax
push ecx
call fcn.0040313d
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x401f83
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x402858
add eax, eax
add eax, 0x25
mov edx, eax
jmp 0x402010
push 0xffffffffffffffff
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov dword [esp + 0x6c], 0
mov edi, dword [esp]
mov ebx, 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x2b0]
lea esi, [esp + 0x310]
lea edi, [esi - 0x50]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], 0x4040f4
mov eax, dword [esp + 0x2b0]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x2ac], ecx
mov ecx, edi
mov dword [esp + 0x2c0], 0x404100
call fcn.00402990
mov ecx, edi
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_]
mov ecx, dword [esp + 0xb4]
cmp ecx, 8
jb 0x4025c5
mov eax, dword [esp + 0xa0]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jae 0x40279e
push edx
push eax
call fcn.00403172
add esp, 8
test ebx, ebx
js 0x40203d
lea eax, [esp + 8]
mov bl, 1
mov dword [0x406414], eax
mov eax, dword [esp + 0xb8]
lea esi, [esp + 0x118]
lea edi, [esi - 0x50]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], 0x4040f4
mov eax, dword [esp + 0xb8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0xb4], ecx
mov ecx, edi
mov dword [esp + 0xc8], 0x404100
call fcn.00402990
mov ecx, edi
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_]
mov eax, dword [esp + 0x160]
lea esi, [esp + 0x1c0]
lea edi, [esi - 0x50]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], 0x4040f4
mov eax, dword [esp + 0x160]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x15c], ecx
mov ecx, edi
mov dword [esp + 0x170], 0x404100
call fcn.00402990
mov ecx, edi
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_]
mov eax, dword [esp + 0x208]
lea esi, [esp + 0x268]
lea edi, [esi - 0x50]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], 0x4040f4
mov eax, dword [esp + 0x208]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x204], ecx
mov ecx, edi
mov dword [esp + 0x218], 0x404100
call fcn.00402990
mov ecx, edi
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_]
mov esi, 1
test bl, bl
je 0x40272d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4026f7
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 0x40278f
push 1
push dword [esp + 0x3c]
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
je 0x40272b
test eax, eax
jne 0x40272d
xor esi, esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 0x4040e8
test eax, eax
je 0x402744
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x402755
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x402764
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x3c]
mov dword [0x406414], 0
call section..text
mov ecx, dword [esp + 0x358]
xor ecx, ebp
call fcn.00403cd1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 8], 0x4040e8
mov esi, 1
jmp 0x402744
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x402858
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x4025bb
lea eax, [ebx + 0x23]
cmp ebx, 0xffffffdc
mov ecx, 0xffffffff
cmovbe ecx, eax
push ecx
call fcn.0040313d
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40222c
xor ebx, ebx
jmp 0x401a6d
xor edi, edi
jmp 0x401cd8
xor edi, edi
jmp 0x401f83
xor edi, edi
jmp 0x40222c
mov byte [edi + 8], 0
mov dword [esp + 0x68], 0
mov ebx, eax
lea eax, [esp + 0x58]
mov edi, 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]
test edi, edi
mov dword [esp + 0x6c], 0
jne 0x40253c
jmp 0x402543
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3