Function at 0x405ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00405c20
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
push 0
push 0x80
push 3
push 0
push 1
test al, al
je 0x405f21
push 0x80000000
jmp 0x405f26
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [edi + 8], ecx
cmp ecx, 0xffffffff
jne 0x405f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x110
lea eax, [edi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [edi + 0x10c]
lea eax, [ecx - 0xa]
cmp eax, 1
ja 0x405f3f
cmp ecx, 0xa
jle 0x405fc3
cmp byte [edi + 0x118], 1
je 0x405f3f
mov ecx, dword [edi + 8]
cmp ecx, 0xffffffff
je 0x406028
mov eax, dword [edi + 0x114]
lea edx, [esp + 0x14]
push 0
push edx
push eax
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x406028
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406028
mov edx, dword [edi + 8]
cmp edx, 0xffffffff
jne 0x405fd3
or eax, edx
mov dword [esp + 0x14], edx
jmp 0x406022
imul ecx, dword [edi + 0x110], 0x13c
xor eax, eax
push 2
neg ecx
mov dword [esp + 0x14], ecx
adc eax, eax
neg eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x40601a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x406016
or eax, 0xffffffff
or ecx, eax
jmp 0x40601e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov dword [edi + 0x114], eax
mov esi, dword [edi + 0x110]
test esi, esi
je 0x40612b
mov eax, dword [edi + 0x2a4]
lea ebx, [edi + 0x2a0]
mov ecx, eax
mov dword [esp + 0xc], eax
sub ecx, dword [ebx]
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
cmp esi, eax
jae 0x40606d
imul eax, esi, 0x13c
add eax, dword [ebx]
jmp 0x4060bb
jbe 0x4060be
mov ecx, dword [ebx + 8]
mov eax, 0x67b23a55
sub ecx, dword [ebx]
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jbe 0x406094
push ecx
push esi
mov ecx, ebx
call fcn.00407e40
jmp 0x4060be
sub esi, dword [esp + 0x10]
je 0x4060b7
imul esi, esi, 0x13c
push esi
push 0
push dword [esp + 0x14]
call fcn.0040f700
mov eax, dword [esp + 0x18]
add esp, 0xc
add eax, esi
jmp 0x4060bb
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], eax
mov ecx, dword [edi + 8]
cmp ecx, 0xffffffff
je 0x4060e9
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
imul eax, dword [edi + 0x110], 0x13c
push eax
push dword [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx]
xor esi, esi
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [esp + 0x10], eax
mov eax, 0x67b23a55
imul ecx
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
test ebx, ebx
jle 0x40612b
mov ecx, dword [esp + 0x10]
add ecx, 0x100
mov eax, dword [ecx]
cmp eax, dword [ecx + 8]
ja 0x405f3f
inc esi
add ecx, 0x13c
cmp esi, ebx
jl 0x406115
lea ecx, [edi + 0x2ac]
call fcn.00407870
mov ecx, dword [edi + 0x2a4]
mov eax, 0x67b23a55
sub ecx, dword [edi + 0x2a0]
xor esi, esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x40618a
nop dword [eax]
push esi
mov ecx, edi
call fcn.00406b00
mov ecx, dword [edi + 0x2a4]
mov eax, 0x67b23a55
sub ecx, dword [edi + 0x2a0]
inc esi
imul ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jl 0x406160
cmp dword [edi + 8], 0xffffffff
je 0x4061a9
push 0x42c528
lea eax, [edi + 0x11c]
push 0x104
push eax
call fcn.00415abf
add esp, 0xc
push dword [ebp + 8]
lea ecx, [edi + 0x220]
call fcn.00405760
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8