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

Disassembly:
push 0xffffffffffffffff
push 0x466891
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0xc0]
push 0x46db58
push eax
lea ecx, [esp + 0x20]
xor edi, edi
push ecx
mov dword [esp + 0x24], edi
call fcn.0044a031
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, edi
je 0x4364fe
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.00407800
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
mov eax, dword [esp + eax + 0x30]
cmp eax, edi
mov dword [esp + 0xb8], edi
jne 0x436412
push 0x46da10
lea ecx, [esp + 0x18]
call fcn.00406140
push 0x46db54
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 1
call fcn.00405800
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004075f0
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov esi, ebx
mov edi, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
test esi, esi
mov ebp, dword [ebx + 4]
je 0x436343
cmp esi, ebx
je 0x436348
call fcn.004489e1
cmp edi, ebp
je 0x4363e8
test esi, esi
jne 0x436359
call fcn.004489e1
cmp edi, dword [esi + 4]
jne 0x436363
call fcn.004489e1
add edi, 0x10
push edi
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x48eddc
call fcn.00435420
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xbc], 2
call fcn.004037f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4363b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 + 0x30]
call fcn.004075f0
lea ecx, [esp + 0x1c]
call fcn.00418660
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x436338
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xb8], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436410
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp dword [esp + 0x78], edi
lea esi, [esp + 0x2c]
je 0x43643a
mov ecx, esi
call fcn.00403d80
test al, al
jne 0x436429
xor esi, esi
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00449e4e
add esp, 4
test eax, eax
je 0x43643c
xor esi, esi
cmp esi, edi
lea edx, [esp + 0x34]
mov dword [esp + 0x3c], edx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov edx, dword [0x491040]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x58]
mov byte [esp + 0x74], 0
mov byte [esp + 0x6e], 0
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x70], edx
mov dword [esp + 0x68], edi
jne 0x4364c5
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x30]
lea ecx, [esp + ecx + 0x28]
or eax, 2
cmp dword [ecx + 0x28], edi
jne 0x4364be
or eax, 4
push edi
push eax
call fcn.00405610
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00449e4e
add esp, 4
lea ecx, [esp + 0x7c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00405c30
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x80], vtable.std::ios_base.0
call fcn.004658aa
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 4