Function at 0x4027a0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4410f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x45c054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0
lea eax, [esi + 0x70]
mov dword [esi], 0x4527d4
mov dword [ebp - 0x1c], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [eax + 8], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 1
sub esp, 8
lea ebx, [esi + 0x10]
mov dword [ebp - 0x14], 1
push ebx
call fcn.004037f0
mov dword [ebp - 4], 2
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ebx
lea eax, [ecx - 0x70]
mov dword [ecx + esi - 4], eax
mov ecx, ebx
call fcn.004039a0
mov byte [ebp - 4], 3
lea eax, [esi + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov byte [eax + 0x48], 0
lea esi, [eax + 8]
mov byte [eax + 0x3e], 0
lea edi, [eax + 0x14]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x40], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x5c], 0
mov eax, dword [0x45eb2c]
mov ecx, dword [0x45eb30]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x48], 0
mov byte [ebp - 4], 4
cmp dword [ebx + 0x5c], 0
jne 0x402a1c
push 0x40
push 1
push dword [ebp + 8]
call fcn.00421591
add esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x402a1c
lea eax, [ebx + 0x10]
lea ebx, [eax + 4]
mov byte [eax + 0x48], 1
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
lea ecx, [eax + 0x18]
mov byte [eax + 0x3e], 0
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x40], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebx], 0
mov dword [edi], 0
mov edi, dword [ebp - 0x10]
mov dword [edx], 0
mov dword [edi + 0x5c], eax
mov eax, dword [0x45eb2c]
mov ecx, dword [0x45eb30]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
mov dword [edi + 0x48], 0
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x44]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x446280]
mov ecx, dword [ebp - 0x18]
call esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 3
push eax
call fcn.00402a70
add esp, 4
lea ecx, [edi + 0x10]
push eax
call fcn.00402600
mov eax, 3
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4029ff
mov eax, dword [ebx]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x446280]
mov ecx, ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x4029ff
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x446280]
mov ecx, ebx
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, ebx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004088a0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10