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

Disassembly:
push 0xffffffffffffffff
push 0x42c464
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4352f4]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4352f4]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x134]
xor ebx, ebx
mov edi, ecx
cmp edi, ebx
mov dword [esp + 0x18], ebp
mov esi, edx
mov dword [esp + 0x1c], ebx
jne 0x40f6d5
push ebx
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
push 0x42f86d
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00405500
mov eax, ebp
jmp 0x40fa5d
mov ecx, esi
mov eax, edi
call fcn.0040f620
test eax, eax
jne 0x40f783
lea ebp, [esi + edi]
cmp ebp, edi
mov eax, edi
je 0x40f70b
nop
mov cl, byte [eax]
mov dl, cl
sub dl, 1
cmp dl, 0x1e
jbe 0x40f783
cmp cl, bl
je 0x40f783
add eax, 1
cmp ebp, eax
jne 0x40f6f0
push 0x43023c
lea ecx, [esp + 0x64]
call fcn.00404460
push eax
lea esi, [esp + 0x24]
mov dword [esp + 0x130], ebx
call fcn.00409f40
add esp, 4
mov esi, dword [esp + 0x18]
push eax
mov edi, 0x43023c
mov byte [esp + 0x130], 1
call fcn.00409f40
mov edi, 0x10
add esp, 4
cmp dword [esp + 0x38], edi
jb 0x40f75f
mov eax, dword [esp + 0x24]
push eax
call fcn.00414c4a
add esp, 4
cmp dword [esp + 0x78], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x40fa5b
mov ecx, dword [esp + 0x64]
push ecx
jmp 0x40fa53
lea eax, [esi + esi + 3]
mov dword [esp + 0x118], 0xf
mov dword [esp + 0x114], ebx
mov byte [esp + 0x104], bl
cmp eax, 0xf
mov dword [esp + 0x12c], 2
je 0x40f7e4
push 1
push eax
lea ecx, [esp + 0x108]
call fcn.00405600
test al, al
je 0x40f7e4
cmp dword [esp + 0x118], 0x10
mov eax, dword [esp + 0x104]
mov dword [esp + 0x114], ebx
jae 0x40f7e2
lea eax, [esp + 0x104]
mov byte [eax], bl
push 1
push 0x43023c
lea eax, [esp + 0x108]
call fcn.0040aa50
add esi, edi
cmp edi, esi
mov dword [esp + 0x1c], esi
mov ebp, edi
je 0x40fa0b
mov al, byte [ebp]
movsx ecx, al
add ecx, 0xfffffff8
cmp ecx, 0x54
ja case.0x40f820.11
movzx edx, byte [ecx + 0x40faa8]
jmp dword [edx*4 + 0x40fa88]
push 2
push 0x430240
lea eax, [esp + 0x108]
call fcn.0040aa50
jmp 0x40fa00
push 2
push 0x430244
lea eax, [esp + 0x108]
call fcn.0040aa50
jmp 0x40fa00
push 2
push 0x430248
lea eax, [esp + 0x108]
call fcn.0040aa50
jmp 0x40fa00
push 2
push 0x43024c
lea eax, [esp + 0x108]
call fcn.0040aa50
jmp 0x40fa00
push 2
push 0x430250
lea eax, [esp + 0x108]
call fcn.0040aa50
jmp 0x40fa00
push 2
push 0x430254
lea eax, [esp + 0x108]
call fcn.0040aa50
jmp 0x40fa00
push 2
push 0x430258
lea eax, [esp + 0x108]
call fcn.0040aa50
jmp 0x40fa00
mov cl, al
sub cl, 1
cmp cl, 0x1e
jbe 0x40f8f4
cmp al, bl
je 0x40f8f4
push eax
mov eax, 1
lea edi, [esp + 0x104]
call fcn.00405380
jmp 0x40fa00
lea edx, [esp + 0x7c]
push edx
call fcn.00405110
lea eax, [esp + 0x7c]
push 0x43025c
push eax
mov byte [esp + 0x134], 3
call fcn.0040eb50
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40f922
xor eax, eax
jmp 0x40f929
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
add eax, esi
mov edx, dword [eax + 0x10]
and edx, 0xfffff9ff
or edx, 0x800
cmp esi, ebx
mov dword [eax + 0x10], edx
jne 0x40f943
xor eax, eax
jmp 0x40f94a
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
or dword [eax + 0x10], 4
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
lea edx, [esp + 0x58]
add eax, esi
push 4
push edx
mov byte [eax + 0x30], 0x30
call fcn.00429879
mov ecx, dword [esi]
mov edx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, esi
push edx
push ecx
call eax
movsx ecx, byte [ebp]
add esp, 0x10
push ecx
push esi
call fcn.00410010
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x7c]
call fcn.00405220
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x108]
mov byte [esp + 0x134], 4
call fcn.00407390
cmp dword [esp + 0x54], 0x10
jb 0x40f9bd
mov edx, dword [esp + 0x40]
push edx
call fcn.00414c4a
add esp, 4
lea ecx, [esp + 0xc8]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x12c], 2
call fcn.004051b0
lea eax, [esp + 0xc8]
push eax
mov dword [esp + 0xcc], vtable.std::ios_base.0
call fcn.00428f3a
mov esi, dword [esp + 0x20]
add esp, 4
add ebp, 1
cmp ebp, esi
jne 0x40f807
push 1
push 0x43023c
lea eax, [esp + 0x108]
call fcn.0040aa50
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x108]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00405420
cmp dword [esp + 0x118], 0x10
jb 0x40fa5b
mov edx, dword [esp + 0x104]
push edx
call fcn.00414c4a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.00414c0c
add esp, 0x11c
ret