Function at 0x405640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x74]
add ecx, 0x10
call fcn.00408770
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 3
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 3
jne 0x4056a8
mov edx, dword [ebp + 8]
push edx
push 1
push 4
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4056a8
mov ecx, dword [ebp + 8]
push ecx
push 1
push 4
mov edx, dword [ebp - 0x74]
add edx, 8
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x4056b8
mov ecx, dword [ebp - 0x74]
call fcn.004011a0
or eax, 0xffffffff
jmp 0x405b18
cmp dword [0x618160], 0
je 0x405877
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 3
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
mov al, byte [ebp - 9]
mov byte [edx], al
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 9]
mov byte [ecx], dl
mov eax, dword [ebp - 0x74]
add eax, 8
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 3
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
mov al, byte [ebp - 0x15]
mov byte [edx], al
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp - 0x15]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
add ecx, 3
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ebp - 0x21], al
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x28]
mov al, byte [ebp - 0x21]
mov byte [edx], al
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x20]
mov al, byte [edx]
mov byte [ebp - 0x21], al
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x28]
mov dl, byte [ebp - 0x21]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
add ecx, 3
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ebp - 0x2d], al
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x2c]
sub ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x34]
mov al, byte [ebp - 0x2d]
mov byte [edx], al
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ebp - 0x2d], al
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x34]
mov dl, byte [ebp - 0x2d]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 3
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov al, byte [edx]
mov byte [ebp - 0x39], al
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x38]
sub ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x40]
mov al, byte [ebp - 0x39]
mov byte [edx], al
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x38]
mov al, byte [edx]
mov byte [ebp - 0x39], al
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x40]
mov al, byte [edx]
mov byte [ecx], al
mov ecx, dword [ebp - 0x40]
mov dl, byte [ebp - 0x39]
mov byte [ecx], dl
mov eax, dword [ebp - 0x74]
cmp dword [eax], 0
jle 0x4059b8
xor ecx, ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x6c]
mov dword [eax + 4], ecx
cmp dword [ebp - 0x6c], 0
jne 0x4058c3
mov ecx, dword [ebp - 0x74]
call fcn.004011a0
or eax, 0xffffffff
jmp 0x405b18
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push ecx
push 4
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0x74]
cmp eax, dword [ecx]
je 0x4058f6
mov ecx, dword [ebp - 0x74]
call fcn.004011a0
or eax, 0xffffffff
jmp 0x405b18
cmp dword [0x618160], 0
je 0x40597b
mov dword [ebp - 0x44], 0
jmp 0x405911
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [eax]
jge 0x40597b
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x44]
lea edx, [eax + ecx*4]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
add eax, 3
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx]
mov byte [ebp - 0x49], dl
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x48]
sub eax, 1
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x50]
mov dl, byte [ebp - 0x49]
mov byte [ecx], dl
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x48]
mov dl, byte [ecx]
mov byte [ebp - 0x49], dl
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x50]
mov cl, byte [ebp - 0x49]
mov byte [eax], cl
jmp 0x405908
mov dword [ebp - 0x54], 0
jmp 0x40598d
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax]
jge 0x4059b8
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x54]
cmp dword [eax + ecx*4], 0
jge 0x4059b6
mov ecx, dword [ebp - 0x74]
call fcn.004011a0
or eax, 0xffffffff
jmp 0x405b18
jmp 0x405984
mov edx, dword [ebp - 0x74]
cmp dword [edx + 8], 0
jle 0x405afc
xor ecx, ecx
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 8]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov dword [eax + 0xc], ecx
cmp dword [ebp - 0x70], 0
jne 0x405a06
mov ecx, dword [ebp - 0x74]
call fcn.004011a0
or eax, 0xffffffff
jmp 0x405b18
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 8]
push ecx
push 4
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0x74]
cmp eax, dword [ecx + 8]
je 0x405a3b
mov ecx, dword [ebp - 0x74]
call fcn.004011a0
or eax, 0xffffffff
jmp 0x405b18
cmp dword [0x618160], 0
je 0x405ac1
mov dword [ebp - 0x58], 0
jmp 0x405a56
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [eax + 8]
jge 0x405ac1
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x58]
lea edx, [eax + ecx*4]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
add eax, 3
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ecx]
mov byte [ebp - 0x5d], dl
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x5c]
sub eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x64]
mov dl, byte [ebp - 0x5d]
mov byte [ecx], dl
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
mov dl, byte [ecx]
mov byte [ebp - 0x5d], dl
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x64]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x64]
mov cl, byte [ebp - 0x5d]
mov byte [eax], cl
jmp 0x405a4d
mov dword [ebp - 0x68], 0
jmp 0x405ad3
mov edx, dword [ebp - 0x68]
add edx, 1
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [eax + 8]
jge 0x405afc
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x68]
cmp dword [eax + ecx*4], 0
jge 0x405afa
mov ecx, dword [ebp - 0x74]
call fcn.004011a0
or eax, 0xffffffff
jmp 0x405b18
jmp 0x405aca
mov edx, dword [ebp - 0x74]
cmp dword [edx + 4], 0
jne 0x405b16
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0xc], 0
jne 0x405b16
mov ecx, dword [ebp - 0x74]
call fcn.00408780
xor eax, eax
mov esp, ebp
pop ebp
ret 4