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

Disassembly:
push 0xffffffffffffffff
push 0x466a7c
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0xc4]
push 0x46db58
push eax
lea ecx, [esp + 0x28]
xor edi, edi
push ecx
mov dword [esp + 0x2c], edi
call fcn.0044a031
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, edi
je 0x40a753
push 1
push eax
lea ecx, [esp + 0x34]
call fcn.00407800
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 4]
mov eax, dword [esp + eax + 0x34]
cmp eax, edi
mov dword [esp + 0xbc], edi
jne 0x40a661
push 0x46da10
lea ecx, [esp + 0x20]
call fcn.00406140
push 0x46db54
lea ecx, [esp + 0x20]
mov byte [esp + 0xc0], 1
call fcn.00405800
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004075f0
push 0x46d9f4
lea ecx, [esp + 0x18]
call fcn.00406140
mov ecx, dword [ebx + 0xc]
push ecx
lea edx, [esp + 0x18]
push 0x46dd50
push edx
mov byte [esp + 0xc8], 2
call fcn.00408b90
add esp, 0xc
push 0x46db54
lea ecx, [esp + 0x18]
call fcn.00405800
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004075f0
push 0x46d9f4
lea ecx, [esp + 0x1c]
call fcn.00406140
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ebp, ebx
mov esi, eax
mov byte [esp + 0xbc], 3
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
lea ebx, [ebx]
test ebp, ebp
mov edi, dword [ebx + 4]
je 0x40a4ab
cmp ebp, ebx
je 0x40a4b0
call fcn.004489e1
cmp esi, edi
je 0x40a5e7
test ebp, ebp
jne 0x40a4c1
call fcn.004489e1
cmp esi, dword [ebp + 4]
jne 0x40a4cb
call fcn.004489e1
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.004037f0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004037f0
cmp esi, dword [ebp + 4]
jne 0x40a4f0
call fcn.004489e1
xor edx, edx
cmp byte [esi + 0x10], dl
lea eax, [esp + 0x18]
setne dl
push edx
push 0x46dd50
push eax
call fcn.00408b90
add esp, 0xc
push 1
push 0x46dd4c
lea ecx, [esp + 0x1c]
call fcn.004035d0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004035d0
xor edi, edi
nop
cmp esi, dword [ebp + 4]
jne 0x40a53a
call fcn.004489e1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40a5af
mov eax, dword [esi + 0x1c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x40a5af
cmp esi, dword [ebp + 4]
jne 0x40a557
call fcn.004489e1
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x40a56a
mov eax, dword [esi + 0x1c]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x40a56f
call fcn.004489e1
mov edx, dword [esi + 0x18]
mov eax, dword [edx + edi*4]
push eax
lea ecx, [esp + 0x1c]
push 0x46dd50
push ecx
call fcn.00408b90
add esp, 0xc
push 1
push 0x46dd4c
lea ecx, [esp + 0x1c]
call fcn.004035d0
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 0xc]
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.004035d0
add edi, 1
jmp 0x40a530
push 1
push 0x46db54
lea ecx, [esp + 0x1c]
call fcn.004035d0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.004075f0
lea ecx, [esp + 0x24]
call fcn.00408350
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
jmp 0x40a4a0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40a60f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a637
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xbc], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a65f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp dword [esp + 0x7c], edi
lea esi, [esp + 0x30]
je 0x40a689
mov ecx, esi
call fcn.00403d80
test al, al
jne 0x40a678
xor esi, esi
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00449e4e
add esp, 4
test eax, eax
je 0x40a68b
xor esi, esi
cmp esi, edi
lea edx, [esp + 0x38]
mov dword [esp + 0x40], edx
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x4c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov edx, dword [0x491040]
lea eax, [esp + 0x58]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x78], 0
mov byte [esp + 0x72], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x74], edx
mov dword [esp + 0x6c], edi
jne 0x40a714
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x34]
lea ecx, [esp + ecx + 0x2c]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x40a70d
or eax, 4
push edi
push eax
call fcn.00405610
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00449e4e
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00405c30
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x84], vtable.std::ios_base.0
call fcn.004658aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret 4