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

Disassembly:
push 0xffffffffffffffff
push 0x41c229
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x422158]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004058a0
mov ecx, dword [esp + 0xec]
xor edi, edi
push 0x22
lea edx, [esp + 0x24]
mov dword [esp + 0xe8], edi
call fcn.00405fe0
test eax, eax
jne 0x403a83
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x24]
lea ecx, [esp + ecx + 0x1c]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x403a72
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x403a83
push edi
call fcn.00402b90
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
mov eax, dword [esp + eax + 0x24]
test al, 6
je 0x403ac2
lea ecx, [esp + 0x70]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00405980
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.00409c1e
add esp, 4
xor al, al
jmp 0x4041b0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 4
mov dword [esp + 0x20], edi
call fcn.00404550
push 0x41f554
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
call fcn.00404550
push esi
lea edx, [esp + 0x20]
push edx
mov ecx, 4
call fcn.00404550
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
call fcn.00404550
lea edx, [esi + 8]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 4
call fcn.00404550
lea ecx, [esi + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 1
call fcn.00404550
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
call fcn.00404550
lea edx, [esi + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 1
call fcn.00404550
lea ecx, [esi + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 4
call fcn.00404550
lea eax, [esi + 0x1c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
call fcn.00404550
lea edx, [esi + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 4
call fcn.00404550
lea ecx, [esi + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 4
call fcn.00404550
lea eax, [esi + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x10
call fcn.00404550
lea edx, [esi + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 4
call fcn.00404550
lea ecx, [esi + 0x40]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 4
call fcn.00404550
lea eax, [esi + 0x44]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 8
call fcn.00404550
lea edx, [esi + 0x4c]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 1
call fcn.00404550
lea ecx, [esi + 0x50]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 0x18
call fcn.00404550
mov eax, dword [esi + 0x70]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 4
mov dword [esp + 0xb0], eax
call fcn.00404550
mov eax, dword [esi + 0x6c]
mov edi, dword [eax]
lea ebp, [esi + 0x68]
cmp ebp, ebp
mov ebx, dword [ebp + 4]
je 0x403c50
call fcn.0040ab95
cmp edi, ebx
je 0x403cdd
cmp edi, dword [ebp + 4]
jne 0x403c62
call fcn.0040ab95
lea eax, [edi + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x28
call fcn.00404550
cmp edi, dword [ebp + 4]
jne 0x403c7f
call fcn.0040ab95
lea edx, [edi + 0x30]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x18
call fcn.00404550
cmp edi, dword [ebp + 4]
jne 0x403c9c
call fcn.0040ab95
lea ecx, [edi + 0x48]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 0x18
call fcn.00404550
cmp edi, dword [ebp + 4]
jne 0x403cb9
call fcn.0040ab95
lea eax, [edi + 0x60]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
call fcn.00404550
cmp edi, dword [ebp + 4]
jne 0x403cd6
call fcn.0040ab95
mov edi, dword [edi]
jmp 0x403c44
mov edx, dword [esi + 0x7c]
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
mov dword [esp + 0xb4], edx
call fcn.00404550
mov eax, dword [esi + 0x78]
mov ebp, dword [eax]
lea edi, [esi + 0x74]
cmp edi, edi
mov ebx, dword [edi + 4]
je 0x403d12
call fcn.0040ab95
cmp ebp, ebx
je 0x403d42
cmp ebp, dword [edi + 4]
jne 0x403d20
call fcn.0040ab95
lea edx, [ebp + 8]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x28
call fcn.00404550
cmp ebp, dword [edi + 4]
jne 0x403d3d
call fcn.0040ab95
mov ebp, dword [ebp]
jmp 0x403d06
mov ecx, dword [esi + 0x88]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0xb4], ecx
push eax
mov ecx, 4
call fcn.00404550
mov eax, dword [esi + 0x84]
mov ebp, dword [eax]
lea edi, [esi + 0x80]
cmp edi, edi
mov ebx, dword [edi + 4]
je 0x403d80
call fcn.0040ab95
cmp ebp, ebx
je 0x403db0
cmp ebp, dword [edi + 4]
jne 0x403d8e
call fcn.0040ab95
lea ecx, [ebp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 0x28
call fcn.00404550
cmp ebp, dword [edi + 4]
jne 0x403dab
call fcn.0040ab95
mov ebp, dword [ebp]
jmp 0x403d74
lea eax, [esi + 0x8c]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
call fcn.00404550
lea edx, [esi + 0x90]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 4
call fcn.00404550
lea ecx, [esi + 0x98]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 4
call fcn.00404550
lea eax, [esi + 0xa0]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
call fcn.00404550
lea edx, [esi + 0xcc]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x28
call fcn.00404550
lea ecx, [esi + 0xf8]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 1
call fcn.00404550
lea eax, [esi + 0xf9]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 1
call fcn.00404550
lea edx, [esi + 0xb4]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 0x18
call fcn.00404550
lea ecx, [esi + 0xfa]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 1
call fcn.00404550
lea eax, [esi + 0xb0]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 4
call fcn.00404550
lea edx, [esi + 0xfd]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 1
call fcn.00404550
lea ecx, [esi + 0xfe]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, 1
call fcn.00404550
lea eax, [esi + 0xff]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, 1
call fcn.00404550
lea edx, [esi + 0x101]
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, 1
call fcn.00404550
add esi, 0x102
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, 1
call fcn.00404550
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x24], 6
jne 0x403f34
mov eax, dword [esp + eax + 0x44]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
push 2
push 1
xor ebx, ebx
push ebx
lea ecx, [esp + 0xc8]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esp + 0xc4]
mov eax, dword [esp + 0xbc]
jmp 0x403f44
mov eax, dword [0x41d308]
xor ecx, ecx
mov dword [esp + 0xc8], ecx
xor ebx, ebx
sub esp, 0x18
add ecx, eax
mov eax, esp
mov dword [esp + 0x30], ecx
lea esi, [esp + 0x34]
mov dword [esp + 0xbc], esp
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
call fcn.004046c0
lea eax, [esp + 0x18]
push eax
mov ecx, esi
push ecx
mov ecx, 4
call fcn.00404550
cmp dword [esp + 0x6c], ebx
lea esi, [esp + 0x20]
je 0x403fa4
mov ecx, esi
call fcn.004061c0
test al, al
jne 0x403f93
xor esi, esi
mov edx, dword [esp + 0x6c]
push edx
call fcn.0040a85f
add esp, 4
test eax, eax
je 0x403fa6
xor esi, esi
cmp esi, ebx
lea eax, [esp + 0x28]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x38]
lea eax, [esp + 0x3c]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov eax, dword [0x42a660]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x4c]
mov byte [esp + 0x68], 0
mov byte [esp + 0x61], 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], ebx
jne 0x404038
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x24]
lea ecx, [esp + ecx + 0x1c]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x404027
or eax, 4
and eax, 0x17
test dword [ecx + 0xc], eax
mov dword [ecx + 8], eax
je 0x404038
push ebx
call fcn.00402b90
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x70]
mov dword [esp + 0xb4], edx
mov dword [esp + ecx + 0x1c], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov dword [esp + 0xe4], 1
lea edx, [esp + 0x20]
mov dword [esp + 0xb8], edx
mov dword [esp + 0x20], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0xe4], 2
cmp byte [esp + 0x68], 0
je 0x404101
cmp dword [esp + 0x6c], ebx
je 0x40409d
mov ecx, edx
call fcn.004061c0
mov eax, dword [esp + 0x6c]
push eax
call fcn.0040a85f
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], ecx
lea edx, [esp + 0x2c]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [0x42a660]
lea edx, [esp + 0x48]
lea eax, [esp + 0x4c]
mov byte [esp + 0x68], 0
mov byte [esp + 0x61], 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x20], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov byte [esp + 0xe4], 3
mov eax, dword [esp + 0x58]
cmp eax, ebx
mov ebp, eax
je 0x40416e
mov edi, dword [eax]
cmp edi, ebx
je 0x404165
push ebx
lea ecx, [esp + 0xa8]
call fcn.0040986b
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x404140
cmp eax, 0xffffffff
jae 0x404140
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0xa4]
and esi, edi
call fcn.0040988c
cmp esi, ebx
je 0x404165
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebp
call fcn.0040a296
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 1
call fcn.00409a20
mov dword [esp + 0xe4], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
lea eax, [esp + 0x70]
mov dword [esp + edx + 0x1c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push eax
mov dword [esp + 0x74], vtable.std::ios_base.0
call fcn.00409c1e
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret 4