Function at 0x401740
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 [eax + 4], 0x4000
mov dword [eax], 8
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x401873
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], 0x4050e8
dec edx
xor esi, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], ecx
inc esi
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], 0x4050d8
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
cmp eax, 0xa
jl 0x4027ad
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
mov esi, dword [ecx + 0x18]
mov dword [esp + 0x2c4], 7
mov dword [esp + 0x2c0], 0
mov word [esp + 0x2b0], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov edi, eax
cmp eax, 7
ja 0x40187b
mov ecx, edi
lea eax, [esp + 0x2b0]
add ecx, edi
mov dword [eax + 0x10], edi
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + edi*2 + 0x2b0], 0
jmp 0x40188d
xor esi, esi
inc esi
jmp 0x4027f7
lea ecx, [esp + 0x2b0]
mov edx, edi
push esi
call fcn.004030f0
add esp, 4
lea edi, [esp + 0x268]
mov ecx, edi
mov dword [edi - 0x60], 0x405100
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [edi], 0x40514c
mov esi, 0x4050fc
lea ebx, [esp + 0x208]
mov eax, dword [edi - 0x60]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], esi
mov eax, dword [edi - 0x60]
lea edi, [esp + 0x218]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x204], ecx
mov eax, dword [edi - 0x10]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], 0x405150
mov eax, dword [edi - 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0x204], ecx
xor eax, eax
mov dword [edi - 4], eax
mov dword [edi - 8], eax
mov ecx, dword [edi - 0x10]
mov ecx, dword [ecx + 4]
add ecx, ebx
push eax
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 [ebx]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x208], esi
mov eax, dword [ebx]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x204], 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 [ebx + 0x10], 0x405110
cmp eax, 7
jbe 0x401958
mov ecx, dword [esp + 0x2b0]
jmp 0x40195f
lea ecx, [esp + 0x2b0]
test esi, esi
js 0x402869
je 0x4019ce
lea eax, [esi + esi]
cmp esi, 0x800
mov dword [esp], ecx
mov dword [esp + 4], eax
jae 0x402250
push eax
call fcn.004031cd
add esp, 4
mov edi, eax
push dword [esp + 4]
push dword [esp + 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + esi*2]
mov ecx, 3
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x224]
mov dword [eax], edi
mov eax, dword [esp + 0x234]
mov dword [eax], edi
mov eax, dword [esp + 0x244]
mov dword [eax], esi
mov eax, dword [esp + 0x2c4]
jmp 0x4019de
mov ecx, 2
mov dword [esp + 0x250], 0
cmp eax, 8
mov dword [esp + 0x254], ecx
jb 0x401a0b
mov ecx, dword [esp + 0x2b0]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jae 0x40286e
push edx
push ecx
call fcn.00403202
add esp, 8
lea eax, [esp + 0x24]
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 + 0x208]
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 0x401a35
xor ebx, ebx
jmp 0x402650
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 sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov edi, eax
cmp eax, 7
ja 0x401a91
mov ecx, edi
lea eax, [esp + 0x2b0]
add ecx, edi
mov dword [eax + 0x10], edi
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + edi*2 + 0x2b0], 0
jmp 0x401aa3
lea ecx, [esp + 0x2b0]
mov edx, edi
push esi
call fcn.004030f0
add esp, 4
lea edi, [esp + 0x1c0]
mov ecx, edi
mov dword [edi - 0x60], 0x405100
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [edi], 0x40514c
mov esi, 0x4050fc
lea ebx, [esp + 0x160]
mov eax, dword [edi - 0x60]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], esi
mov eax, dword [edi - 0x60]
lea edi, [esp + 0x170]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x15c], ecx
mov eax, dword [edi - 0x10]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], 0x405150
mov eax, dword [edi - 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0x15c], ecx
xor eax, eax
mov dword [edi - 4], eax
mov dword [edi - 8], eax
mov ecx, dword [edi - 0x10]
mov ecx, dword [ecx + 4]
add ecx, ebx
push eax
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 [ebx]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x160], esi
mov eax, dword [ebx]
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 [ebx + 0x10], 0x405110
cmp eax, 7
jbe 0x401b6e
mov ecx, dword [esp + 0x2b0]
jmp 0x401b75
lea ecx, [esp + 0x2b0]
test esi, esi
js 0x402869
je 0x401be4
lea eax, [esi + esi]
cmp esi, 0x800
mov dword [esp], ecx
mov dword [esp + 4], eax
jae 0x402282
push eax
call fcn.004031cd
add esp, 4
mov edi, eax
push dword [esp + 4]
push dword [esp + 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + esi*2]
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], esi
mov eax, dword [esp + 0x2c4]
jmp 0x401bf4
mov ecx, 2
mov dword [esp + 0x1a8], 0
cmp eax, 8
mov dword [esp + 0x1ac], ecx
jb 0x401c21
mov ecx, dword [esp + 0x2b0]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jae 0x402889
push edx
push ecx
call fcn.00403202
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 0x401c4b
xor ebx, ebx
jmp 0x402552
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 0x401c9c
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x401c9c
mov ebx, eax
push str.SetCurrentProcessExplicitAppUserModelID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401c95
mov edx, dword [ebp + 0xc]
mov ecx, eax
mov esi, dword [edx + 0x20]
call dword [section..00cfg]
push esi
call ecx
push ebx
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 sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov edi, eax
cmp eax, 7
ja 0x401cf8
mov ecx, edi
lea eax, [esp + 0x2b0]
add ecx, edi
mov dword [eax + 0x10], edi
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + edi*2 + 0x2b0], 0
jmp 0x401d0a
lea ecx, [esp + 0x2b0]
mov edx, edi
push esi
call fcn.004030f0
add esp, 4
lea edi, [esp + 0x118]
mov ecx, edi
mov dword [edi - 0x60], 0x405100
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [edi], 0x40514c
mov esi, 0x4050fc
lea ebx, [esp + 0xb8]
mov eax, dword [edi - 0x60]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], esi
mov eax, dword [edi - 0x60]
lea edi, [esp + 0xc8]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0xb4], ecx
mov eax, dword [edi - 0x10]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], 0x405150
mov eax, dword [edi - 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0xb4], ecx
xor eax, eax
mov dword [edi - 4], eax
mov dword [edi - 8], eax
mov ecx, dword [edi - 0x10]
mov ecx, dword [ecx + 4]
add ecx, ebx
push eax
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 [ebx]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0xb8], esi
mov eax, dword [ebx]
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 [ebx + 0x10], 0x405110
cmp eax, 7
jbe 0x401dd5
mov ecx, dword [esp + 0x2b0]
jmp 0x401ddc
lea ecx, [esp + 0x2b0]
test esi, esi
js 0x402869
je 0x401e4b
lea eax, [esi + esi]
cmp esi, 0x800
mov dword [esp], ecx
mov dword [esp + 4], eax
jae 0x4022aa
push eax
call fcn.004031cd
add esp, 4
mov edi, eax
push dword [esp + 4]
push dword [esp + 4]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [edi + esi*2]
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], esi
mov eax, dword [esp + 0x2c4]
jmp 0x401e5b
mov ecx, 2
mov dword [esp + 0x100], 0
cmp eax, 8
mov dword [esp + 0x104], ecx
jb 0x401e88
mov ecx, dword [esp + 0x2b0]
lea edx, [eax + eax + 2]
cmp edx, 0x1000
jae 0x4028a4
push edx
push ecx
call fcn.00403202
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]
xor ebx, ebx
test al, al
jne 0x402454
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
mov eax, dword [ebp + 0xc]
sbb ebx, ebx
not ebx
or ebx, dword [esp + 0x38]
mov esi, dword [eax + 0x28]
mov eax, 7
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], eax
mov word [esp + 0xa0], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
add esp, 4
mov edi, eax
cmp eax, 7
ja 0x401f1e
mov ecx, edi
lea eax, [esp + 0xa0]
add ecx, edi
mov dword [eax + 0x10], edi
push ecx
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov word [esp + edi*2 + 0xa0], 0
jmp 0x401f30
lea ecx, [esp + 0xa0]
mov edx, edi
push esi
call fcn.004030f0
add esp, 4
test ebx, ebx
mov edi, 0x80070057
je 0x402414
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x402414
cmp dword [esp + 0x68], 0
mov edi, 0xc1f30002
jne 0x402414
lea edi, [esp + 0x310]
mov dword [esp], eax
mov ecx, edi
mov dword [edi - 0x60], 0x405100
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov dword [edi], 0x40514c
mov ecx, 0x4050fc
lea esi, [esp + 0x2b0]
mov eax, dword [edi - 0x60]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], ecx
mov eax, dword [edi - 0x60]
lea edi, [esp + 0x2c0]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x60]
mov dword [esp + eax + 0x2ac], ecx
mov eax, dword [edi - 0x10]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], 0x405150
mov eax, dword [edi - 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x18]
mov dword [esp + eax + 0x2ac], ecx
xor eax, eax
mov dword [edi - 4], eax
mov dword [edi - 8], eax
mov ecx, dword [edi - 0x10]
mov ecx, dword [ecx + 4]
add ecx, esi
push eax
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 [esi]
mov ecx, 0x4050fc
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x2b0], ecx
mov eax, dword [esi]
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 [esi + 0x10], 0x405110
jbe 0x402026
mov ecx, dword [esp + 0xa0]
jmp 0x40202d
lea ecx, [esp + 0xa0]
mov eax, dword [esp]
test eax, eax
js 0x402869
lea esi, [eax + eax]
cmp eax, 0x800
mov dword [esp + 4], ecx
jae 0x4022d2
push esi
call fcn.004031cd
add esp, 4
mov edi, eax
push esi
push dword [esp + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [esp]
lea esi, [esp + 0x2b0]
lea eax, [edi + ecx*2]
mov dword [esp + 0x2f8], eax
mov eax, dword [esp + 0x2cc]
mov dword [eax], edi
mov eax, dword [esp + 0x2dc]
mov dword [eax], edi
mov eax, dword [esp + 0x2ec]
mov dword [eax], ecx
lea eax, [esp + 0x9c]
mov dword [esp + 0x2fc], 3
mov ecx, esi
mov dword [eax], 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 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 0x40231d
xor esi, esi
push esi
push esi
push esi
push 2
push dword [esp + 0xac]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x402278
lea ecx, [esp + 0x80]
xorps xmm0, xmm0
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x18], esi
movaps xmmword [ecx], xmm0
push 0x1c
push ecx
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40211b
mov eax, dword [esp + 0x8c]
je 0x40230f
test eax, eax
mov edx, esi
je 0x402246
mov edi, 0x80070057
cmp eax, 0x11
jb 0x402316
shr eax, 1
mov ecx, edx
mov dword [esp + 0x48], edx
add ecx, eax
add eax, 0xfffffff8
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
cmp dword [edx], 0
jne 0x402316
cmp dword [edx + 4], 0x10
jne 0x402316
cmp dword [edx + 8], 0
je 0x402246
mov eax, dword [edx + 0xc]
test eax, eax
je 0x402246
cmp dword [edx + 0x10], 0
je 0x402246
cmp dword [edx + 0x14], 0
je 0x402246
lea ecx, [esp + 0x3c]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], ebx
lea eax, [esp + 0x6c]
push 0
push 0xffffffffffffffff
push ecx
push 0x401080
push dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40230f
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4022fb
cmp dword [esp + 0x4c], 0
je 0x4022fb
xor ecx, ecx
inc ecx
mov dword [eax], ecx
lea eax, [esp + 8]
mov edx, dword [eax + 0x3c]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 0x3c]
mov byte [ecx + 8], 1
mov dword [esp], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 0x60], ecx
mov dword [eax + 0x68], esi
mov ecx, dword [esi + 8]
mov dword [eax + 0x50], ecx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0x54], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x58], ecx
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x38], eax
mov dword [eax + 0x6c], ebx
mov eax, dword [eax + 0x34]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
lea esi, [esp + 0x3c]
mov ecx, esi
call edi
test eax, eax
js 0x402823
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
call edi
xor edi, edi
jmp 0x40231d
mov edi, 0x80004005
jmp 0x402316
add eax, 0x23
cmp esi, 0x7fffffef
mov ecx, 0xffffffff
cmovae eax, ecx
push eax
call fcn.004031cd
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x40198a
mov edi, 0x80004005
jmp 0x40231d
add eax, 0x23
cmp esi, 0x7fffffef
mov ecx, 0xffffffff
cmovae eax, ecx
push eax
call fcn.004031cd
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x401ba0
add eax, 0x23
cmp esi, 0x7fffffef
mov ecx, 0xffffffff
cmovae eax, ecx
push eax
call fcn.004031cd
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x401e07
cmp dword [esp], 0x7fffffef
lea eax, [esi + 0x23]
mov ecx, 0xffffffff
cmovb ecx, eax
push ecx
call fcn.004031cd
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x402055
push 0xffffffffffffffff
push dword [esp + 0x70]
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov dword [esp + 0x6c], 0
mov edi, 0x80004005
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x2b0]
lea esi, [esp + 0x310]
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 0x4023bc
mov ecx, dword [esp + 0x2e0]
lea eax, [esi - 0x60]
mov ecx, dword [ecx]
test ecx, ecx
je 0x402377
add eax, 0x40
jmp 0x402383
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 0x4023b2
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x4028da
add eax, 0x23
push eax
push ecx
call fcn.00403202
add esp, 8
mov eax, dword [esp + 0x2cc]
xor edx, edx
lea ecx, [esi - 0x50]
mov dword [eax], edx
mov eax, dword [esp + 0x2dc]
mov dword [eax], edx
mov eax, dword [esp + 0x2ec]
mov dword [eax], edx
mov eax, dword [esp + 0x2d0]
mov dword [eax], edx
mov eax, dword [esp + 0x2e0]
mov dword [eax], edx
mov eax, dword [esp + 0x2f0]
mov dword [eax], edx
mov dword [esp + 0x2f8], edx
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_]
mov ecx, dword [esp + 0xb4]
cmp ecx, 8
jb 0x402441
mov eax, dword [esp + 0xa0]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jae 0x4028bf
push edx
push eax
call fcn.00403202
add esp, 8
test edi, edi
js 0x40281c
lea eax, [esp + 8]
mov bl, 1
mov dword [0x407414], eax
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 0x4024f3
mov ecx, dword [esp + 0xe8]
lea eax, [esp + 0x118]
add eax, 0xffffffa0
mov ecx, dword [ecx]
test ecx, ecx
je 0x4024ae
add eax, 0x40
jmp 0x4024ba
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 0x4024e9
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x4028da
add eax, 0x23
push eax
push ecx
call fcn.00403202
add esp, 8
mov eax, dword [esp + 0xd4]
xor edx, edx
lea esi, [esp + 0x118]
lea ecx, [esi - 0x50]
mov dword [eax], edx
mov eax, dword [esp + 0xe4]
mov dword [eax], edx
mov eax, dword [esp + 0xf4]
mov dword [eax], edx
mov eax, dword [esp + 0xd8]
mov dword [eax], edx
mov eax, dword [esp + 0xe8]
mov dword [eax], edx
mov eax, dword [esp + 0xf8]
mov dword [eax], edx
mov dword [esp + 0x100], edx
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_]
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
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 0x4025f1
mov ecx, dword [esp + 0x190]
lea eax, [esp + 0x1c0]
add eax, 0xffffffa0
mov ecx, dword [ecx]
test ecx, ecx
je 0x4025ac
add eax, 0x40
jmp 0x4025b8
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 0x4025e7
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x4028da
add eax, 0x23
push eax
push ecx
call fcn.00403202
add esp, 8
mov eax, dword [esp + 0x17c]
xor edx, edx
lea esi, [esp + 0x1c0]
lea ecx, [esi - 0x50]
mov dword [eax], edx
mov eax, dword [esp + 0x18c]
mov dword [eax], edx
mov eax, dword [esp + 0x19c]
mov dword [eax], edx
mov eax, dword [esp + 0x180]
mov dword [eax], edx
mov eax, dword [esp + 0x190]
mov dword [eax], edx
mov eax, dword [esp + 0x1a0]
mov dword [eax], edx
mov dword [esp + 0x1a8], edx
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_]
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
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 0x4026ef
mov ecx, dword [esp + 0x238]
lea eax, [esp + 0x268]
add eax, 0xffffffa0
mov ecx, dword [ecx]
test ecx, ecx
je 0x4026aa
add eax, 0x40
jmp 0x4026b6
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 0x4026e5
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x4028da
add eax, 0x23
push eax
push ecx
call fcn.00403202
add esp, 8
mov eax, dword [esp + 0x224]
xor edx, edx
lea esi, [esp + 0x268]
lea ecx, [esi - 0x50]
mov dword [eax], edx
mov eax, dword [esp + 0x234]
mov dword [eax], edx
mov eax, dword [esp + 0x244]
mov dword [eax], edx
mov eax, dword [esp + 0x228]
mov dword [eax], edx
mov eax, dword [esp + 0x238]
mov dword [eax], edx
mov eax, dword [esp + 0x248]
mov dword [eax], edx
mov dword [esp + 0x250], edx
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, esi
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
test bl, bl
mov esi, 1
je 0x4027ad
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40276e
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 0x40280f
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
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], 0x4050e8
test eax, eax
je 0x4027c4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4027d5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4027e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x3c]
mov dword [0x407414], 0
call section..text
mov ecx, dword [esp + 0x358]
xor ecx, ebp
call fcn.00403de0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
mov dword [esp + 8], 0x4050e8
inc esi
jmp 0x4027c4
xor ebx, ebx
jmp 0x402454
mov ebx, eax
mov eax, dword [esp]
xor edi, edi
lea esi, [esp + 0x58]
mov byte [eax + 8], 0
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0x18]
mov dword [esi + 0x18], edi
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esp], eax
push 0xffffffffffffffff
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
mov edx, dword [esp]
mov dword [esi + 0x14], edi
mov edi, ebx
test edx, edx
jne 0x402316
jmp 0x40231d
call sub.MSVCP140.dll_void___cdecl_std::_Xbad_alloc_void_
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x4028da
add eax, eax
add eax, 0x25
mov edx, eax
jmp 0x401a01
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x4028da
add eax, eax
add eax, 0x25
mov edx, eax
jmp 0x401c17
mov edx, ecx
mov ecx, dword [ecx - 4]
add edx, 0xfffffffc
sub edx, ecx
cmp edx, 0x20
jae 0x4028da
add eax, eax
add eax, 0x25
mov edx, eax
jmp 0x401e7e
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4028da
add ecx, ecx
add ecx, 0x25
mov edx, ecx
jmp 0x402437
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebp
mov ebp, esp
push esi
mov esi, ecx
call section..text
cmp dword [ebp + 8], 0
je 0x4028fa
push esi
call fcn.004031fd
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4