Function at 0x405b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
push eax
push 2
push 4
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 2
jne 0x405b60
mov edx, dword [ebp + 8]
push edx
push 2
push 4
mov eax, dword [ebp - 0x34]
add eax, 8
push eax
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 2
je 0x405b70
mov ecx, dword [ebp - 0x34]
call fcn.004011e0
or eax, 0xffffffff
jmp 0x405d32
cmp dword [0x618160], 0
je 0x405cda
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 3
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [ebp - 5], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 5]
mov byte [eax], cl
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [ebp - 5], cl
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0xc]
mov al, byte [ebp - 5]
mov byte [edx], al
mov ecx, dword [ebp - 0x34]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 3
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x11]
mov byte [eax], cl
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x18]
mov al, byte [ebp - 0x11]
mov byte [edx], al
mov ecx, dword [ebp - 0x34]
add ecx, 8
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
add edx, 3
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x1c]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x24]
mov cl, byte [ebp - 0x1d]
mov byte [eax], cl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x1d]
mov byte [edx], al
mov ecx, dword [ebp - 0x34]
add ecx, 0xc
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 3
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax]
mov byte [ebp - 0x29], cl
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [ebp - 0x29]
mov byte [eax], cl
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax]
mov byte [ebp - 0x29], cl
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x30]
mov al, byte [ebp - 0x29]
mov byte [edx], al
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], 0
jl 0x405ceb
mov edx, dword [ebp - 0x34]
cmp dword [edx + 4], 0
jge 0x405cf8
mov ecx, dword [ebp - 0x34]
call fcn.004011e0
or eax, 0xffffffff
jmp 0x405d32
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0xc], 0
jge 0x405d0b
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0xc], 0xffffffff
mov edx, dword [ebp - 0x34]
cmp dword [edx + 8], 0
jge 0x405d30
mov eax, dword [ebp - 0x34]
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 8], 0xffffffff
mov ecx, dword [ebp - 0x34]
call fcn.004087a0
xor eax, eax
mov esp, ebp
pop ebp
ret 4