Function at 0x4065f0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4ac200]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x502cbc], eax
push str.FreeConsole
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
call eax
mov edx, 0x547
mov ecx, 0x4ff4f0
push 0x27
push 0x4accc0
call fcn.00405e50
push 0
push 1
push str._d__d
call fcn.004012b0
add esp, 0x10
call fcn.00407df0
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 0x3c], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 0x40]
push eax
call fcn.0040d200
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x34], al
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x4066c3
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x34]
mov ecx, edi
call fcn.0040f9a0
mov ecx, edi
call fcn.0040c4b0
mov edx, dword [0x502cbc]
xor esi, esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], 0
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + edx + 0x78]
add eax, edx
mov dword [ebp - 0x3c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, edx
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4067df
add edx, dword [edi]
xorps xmm0, xmm0
mov eax, edx
movaps xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [eax + 1]
mov dword [ebp - 0x44], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406724
sub eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x30]
push eax
push edx
call fcn.0040e410
lea ecx, [ebp - 0x30]
call fcn.00406200
cmp eax, 0x8aafdc01
je 0x40678c
mov ecx, dword [ebp - 0x1c]
add edi, 4
cmp ecx, 0xf
jbe 0x40677e
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406774
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a37
push ecx
push edx
call fcn.0043d19a
add esp, 8
mov edx, dword [ebp - 0x38]
inc esi
cmp esi, dword [ebp - 0x48]
jae 0x4067df
jmp 0x406705
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, dword [edi + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + edx]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x4067df
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4067d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a37
push ecx
push edx
call fcn.0043d19a
mov edx, dword [ebp - 0x38]
add esp, 8
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
push ecx
push 0x40
push 0x4e4
add eax, edx
push 0x4ff4f0
call eax
test eax, eax
je 0x406a10
push 0xb0
mov dword [ebp - 0x3c], 0x406580
call fcn.0043cdde
add esp, 4
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
call fcn.004128d0
mov edi, eax
test edi, edi
je 0x406a2d
lea eax, [edi + 4]
mov dword [ebp - 0x44], eax
lock inc dword [eax]
or esi, 0xffffffff
mov ecx, esi
lock xadd dword [eax], ecx
jne 0x40684f
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x406847
mov eax, dword [ecx]
push edi
jmp 0x40684d
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
cmp byte [edi + 0x6c], 0
jne 0x406a2d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
sub esp, 0x10
movaps xmmword [ebp - 0x30], xmm0
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00407a50
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x108]
call fcn.0040d9a0
lea ecx, [ebp - 0xf8]
call fcn.0040a9b0
test eax, eax
jne 0x4068cd
mov eax, dword [ebp - 0x108]
lea ecx, [ebp - 0x108]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00402e40
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x406946
cmp dword [ebp - 0x1c], 0xf
lea edx, [ebp - 0x30]
push eax
cmova edx, dword [ebp - 0x30]
call fcn.00410720
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 0x3c], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 0x40]
push eax
call fcn.0040d200
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x3c], al
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x406930
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
call fcn.0040f9a0
mov ecx, dword [ebp - 0x48]
call fcn.0040c4b0
or esi, 0xffffffff
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x10c], eax
lea ecx, [ebp - 0xf8]
call fcn.00407630
mov eax, dword [ebp - 0x108]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x10c], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], vtable.std::ios_base.0
call fcn.00416402
mov ecx, dword [ebp - 0x1c]
add esp, 4
cmp ecx, 0xf
jbe 0x4069e8
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4069de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a3c
push ecx
push edx
call fcn.0043d19a
add esp, 8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lock xadd dword [eax], esi
dec esi
jne 0x406a10
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x406a25
mov eax, dword [ecx]
push edi
call dword [eax]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0043ccc7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [edi]
mov ecx, edi
push 1
jmp 0x406a0e
mov ecx, 4
call fcn.00405bd0
call fcn.004677df
call fcn.004677df
int3