Function at 0x40c780
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43f61c
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44dd70]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x84]
test esi, esi
jne 0x40c7c0
lea eax, [esi + 5]
jmp 0x40cf8b
cmp dword [ebx + 0x4c], 0
je 0x40c7d0
mov eax, 3
jmp 0x40cf8b
push ebx
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0040c210
add esp, 0xc
test eax, eax
jne 0x40cf8b
mov edi, dword [sym.imp.MSVCR90.dll_fread]
push esi
push 1
lea ecx, [esp + 0x24]
push 4
push ecx
call edi
add esp, 0x10
cmp eax, 1
je 0x40c812
mov ecx, ebx
call fcn.00409f50
mov eax, 7
jmp 0x40cf8b
push esi
push 1
lea eax, [ebx + 4]
push 4
push eax
mov dword [esp + 0x3c], eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 8]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0xc]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x10]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x14]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x18]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x1c]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x20]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x24]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x28]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x2c]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x30]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x34]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push 1
lea eax, [ebx + 0x38]
push 4
push eax
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push eax
lea ebp, [ebx + 0x3c]
push 4
push ebp
call edi
add esp, 0x10
cmp eax, 1
jne 0x40c801
push esi
push eax
lea edi, [ebx + 0x40]
push 4
push edi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40c801
mov edx, dword [esp + 0x84]
push edx
push eax
lea esi, [ebx + 0x44]
push 4
push esi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40c801
mov ecx, dword [esp + 0x84]
push ecx
push 1
lea eax, [ebx + 0x48]
push 4
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40c801
cmp dword [esp + 0x20], 0
je 0x40cc59
mov al, byte [esp + 0x1f]
movzx edx, byte [esp + 0x1c]
mov cl, byte [esp + 0x1d]
mov byte [esp + 0x1c], al
mov al, byte [esp + 0x1e]
mov byte [esp + 0x1d], al
mov eax, dword [esp + 0x2c]
movzx ebx, byte [eax]
mov byte [esp + 0x1e], cl
lea ecx, [eax + 3]
inc eax
mov byte [esp + 0x1f], dl
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax - 1], dl
movzx ebx, byte [eax]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax], dl
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 8]
dec ecx
add eax, 8
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0xc]
dec ecx
add eax, 0xc
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x10]
dec ecx
add eax, 0x10
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x14]
dec ecx
add eax, 0x14
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
inc eax
dec ecx
mov byte [ecx], bl
mov byte [eax], dl
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x18]
add eax, 0x18
mov dl, byte [eax + 3]
lea ecx, [eax + 3]
mov byte [ecx], bl
dec ecx
mov byte [eax], dl
inc eax
movzx ebx, byte [eax]
mov dl, byte [ecx]
mov byte [ecx], bl
mov byte [eax], dl
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x1c]
add eax, 0x1c
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x20]
dec ecx
add eax, 0x20
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x24]
dec ecx
add eax, 0x24
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x28]
dec ecx
add eax, 0x28
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x2c]
dec ecx
add eax, 0x2c
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
inc eax
mov byte [ecx - 1], bl
mov byte [eax], dl
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x30]
dec ecx
add eax, 0x30
mov dl, byte [eax + 3]
lea ecx, [eax + 3]
mov byte [ecx], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
mov dl, byte [ecx - 1]
dec ecx
inc eax
mov byte [ecx], bl
mov byte [eax], dl
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x34]
add eax, 0x34
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x38]
dec ecx
add eax, 0x38
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
dec ecx
mov eax, ebp
movzx ebx, byte [eax]
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
dec ecx
mov eax, edi
movzx ebx, byte [eax]
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
mov byte [eax + 1], dl
inc eax
dec ecx
mov eax, esi
movzx ebx, byte [eax]
mov dl, byte [eax + 3]
mov byte [eax + 3], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
lea ecx, [eax + 3]
mov dl, byte [ecx - 1]
mov byte [ecx - 1], bl
inc eax
mov byte [eax], dl
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 0x48]
dec ecx
add eax, 0x48
mov dl, byte [eax + 3]
lea ecx, [eax + 3]
mov byte [ecx], bl
mov byte [eax], dl
movzx ebx, byte [eax + 1]
mov dl, byte [ecx - 1]
dec ecx
inc eax
mov byte [ecx], bl
mov ebx, dword [esp + 0x14]
mov byte [eax], dl
mov edx, dword [esp + 0x80]
push 0x405980
push 0x40d1a0
push 2
push 0x18
lea eax, [esp + 0x50]
push eax
mov dword [ebx + 0x50], edx
call fcn.0043ceb8
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebx + 0x18]
push eax
lea eax, [ebx + 0x14]
push eax
mov dword [esp + 0x84], 0
call fcn.0040c010
mov eax, dword [eax]
mov ecx, dword [ebx + 0x50]
add esp, 0xc
push eax
call fcn.00409d60
test eax, eax
jne 0x40cd0f
mov esi, dword [ebx + 0x48]
xor ecx, ecx
mov eax, esi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x78], 1
test eax, eax
je 0x40ccfa
push 0x409d20
push 0x4092d0
push esi
lea edi, [eax + 4]
push 0x10
push edi
mov dword [eax], esi
call fcn.0043ceb8
jmp 0x40ccfc
xor edi, edi
mov byte [esp + 0x78], 0
mov dword [ebx + 0x4c], edi
test edi, edi
jne 0x40cd37
mov ecx, ebx
call fcn.00409f50
push 0x405980
push 2
push 0x18
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x88], 0xffffffff
call fcn.0043cf82
mov eax, 4
jmp 0x40cf8b
xor ebp, ebp
cmp dword [ebx + 0x48], ebp
mov dword [esp + 0x2c], ebp
jle 0x40cf64
mov edi, dword [esp + 0x84]
mov dword [esp + 0x24], ebp
push edi
push 1
lea edx, [esp + 0x20]
push 4
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40cfa1
mov eax, ebp
cdq
idiv dword [ebx + 0x14]
mov ecx, dword [ebx + 0x50]
mov esi, dword [ecx + 0x28]
cdq
idiv dword [ecx + 0x2c]
cmp edx, esi
je 0x40cda2
cmp dword [ebx], 1
mov eax, dword [esp + 0x18]
jne 0x40cd8d
lea eax, [eax + eax*2]
shl eax, 4
push 1
push eax
push edi
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
jmp 0x40cf51
cmp dword [esp + 0x20], 0
je 0x40cdc9
mov al, byte [esp + 0x1b]
mov cl, byte [esp + 0x18]
mov dl, byte [esp + 0x19]
mov byte [esp + 0x18], al
mov al, byte [esp + 0x1a]
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1a], dl
mov byte [esp + 0x19], al
cmp dword [esp + 0x18], 0
je 0x40cf51
mov ecx, dword [esp + 0x80]
call fcn.0040be20
mov ecx, dword [esp + 0x24]
mov edx, dword [ebx + 0x4c]
mov dword [ecx + edx], eax
mov eax, dword [ebx + 0x4c]
mov ebp, dword [ecx + eax]
test ebp, ebp
je 0x40cfcd
cmp dword [ebx], 1
push edi
push 2
jne 0x40ce4c
lea ecx, [esp + 0x48]
push 0x18
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 2
jne 0x40cff9
xor esi, esi
lea edi, [esp + 0x40]
nop
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
call fcn.0040c180
fld dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
fstp dword [ebp + esi*8]
mov dword [ebp + esi*8 + 4], ecx
inc esi
add edi, 0x18
cmp esi, 2
jl 0x40ce20
jmp 0x40ce61
push 8
push ebp
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 2
jne 0x40cfa1
cmp dword [esp + 0x20], 0
je 0x40ce6f
mov ecx, ebp
call fcn.0040d1b0
mov eax, 1
cmp dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
jle 0x40cf3b
mov ecx, dword [esp + 0x80]
mov esi, dword [sym.imp.MSVCR90.dll_fread]
call fcn.0040be20
mov edi, eax
test edi, edi
je 0x40cfcd
mov dword [edi + 0x14], ebp
mov dword [ebp + 0x10], edi
cmp dword [ebx], 1
mov ebp, edi
jne 0x40cefb
mov edx, dword [esp + 0x84]
push edx
push 2
lea eax, [esp + 0x48]
push 0x18
push eax
call esi
add esp, 0x10
cmp eax, 2
jne 0x40cff9
xor esi, esi
lea ebx, [esp + 0x40]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov ecx, ebx
call fcn.0040c180
fld dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
fstp dword [edi + esi*8]
mov dword [edi + esi*8 + 4], eax
inc esi
add ebx, 0x18
cmp esi, 2
jl 0x40ced0
jmp 0x40cf16
mov ecx, dword [esp + 0x84]
push ecx
push 2
push 8
push edi
call esi
add esp, 0x10
cmp eax, 2
jne 0x40d028
cmp dword [esp + 0x20], 0
je 0x40cf24
mov ecx, edi
call fcn.0040d1b0
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
jl 0x40ce82
mov edx, dword [ebx + 0x4c]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x84]
mov dword [eax + edx + 4], ebp
mov ebp, dword [esp + 0x2c]
add dword [esp + 0x24], 0x10
inc ebp
cmp ebp, dword [ebx + 0x48]
mov dword [esp + 0x2c], ebp
jl 0x40cd51
mov ecx, ebx
call fcn.004097e0
push 0x405980
push 2
push 0x18
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x88], 0xffffffff
call fcn.0043cf82
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 8
mov ecx, ebx
call fcn.00409f50
push 0x405980
push 2
push 0x18
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x88], 0xffffffff
call fcn.0043cf82
mov eax, 7
jmp 0x40cf8b
mov ecx, ebx
call fcn.00409f50
push 0x405980
push 2
push 0x18
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x88], 0xffffffff
call fcn.0043cf82
mov eax, 4
jmp 0x40cf8b
mov ecx, ebx
call fcn.00409f50
push 0x405980
push 2
push 0x18
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x88], 0xffffffff
call fcn.0043cf82
mov eax, 7
jmp 0x40cf8b
mov ecx, dword [esp + 0x14]
call fcn.00409f50
push 0x405980
push 2
push 0x18
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x88], 0xffffffff
call fcn.0043cf82
mov eax, 7
jmp 0x40cf8b