Function at 0x405e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov edx, dword [eax + 0x18]
sub edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
sbb ecx, dword [eax + 0x14]
add edx, 1
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x10]
adc ecx, 0
xor eax, eax
mov esi, edx
add esi, ebx
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
adc eax, esi
mov dword [ebp - 0x14], esi
cmp eax, ecx
ja 0x405ffc
jb 0x405e8f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x1c]
ja 0x405ffc
mov eax, dword [edi + 0xc]
imul eax, edx
cmp dword [ebp + 0x18], eax
jb 0x405ffc
mov eax, dword [edi + 0x28]
mov dword [edi + 0x30], eax
test eax, eax
je 0x405fd9
mov eax, dword [eax + 4]
test eax, eax
je 0x405fd9
cmp esi, dword [eax + 0x14]
jb 0x405fbe
ja 0x405ecb
cmp ebx, dword [eax + 0x10]
jb 0x405fbe
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
cmp dword [ebp - 0x14], ecx
ja 0x405fbb
jb 0x405ee4
cmp ebx, esi
ja 0x405fbb
sub esi, ebx
mov dword [ebp - 0x1c], 0
sbb ecx, dword [ebp - 0x14]
add esi, 1
adc ecx, 0
cmp dword [ebp - 0x1c], ecx
jb 0x405f01
ja 0x405f03
cmp edx, esi
ja 0x405f03
mov esi, edx
mov ecx, dword [edi + 0xc]
mov edx, ebx
sub edx, dword [eax + 0x10]
mov ebx, dword [ebp - 0x14]
sbb ebx, dword [eax + 0x14]
add edx, dword [eax]
adc ebx, dword [eax + 4]
mov eax, edx
and eax, ebx
cmp eax, 0xffffffff
jne 0x405f35
imul ecx, esi
push ecx
push 0
push dword [ebp - 0x18]
call fcn.0040dbe0
mov ecx, dword [edi + 0xc]
add esp, 0xc
jmp 0x405f91
push ebx
push edx
push 0
push ecx
call fcn.0041da00
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push eax
push dword [edi + 0x14]
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x405f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405fd9
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 0xc]
imul eax, esi
push eax
push dword [ebp - 0x18]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405fd9
mov ecx, dword [edi + 0xc]
mov eax, ecx
imul eax, esi
cmp dword [ebp - 8], eax
jne 0x405fd9
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x20]
sub edx, esi
imul ecx, esi
add dword [eax], esi
mov dword [ebp + 0x10], edx
add dword [ebp - 0x18], ecx
add ebx, esi
mov esi, dword [ebp - 0x14]
adc esi, 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], esi
test edx, edx
je 0x405fd9
jmp 0x405fbe
mov esi, dword [ebp - 0x14]
mov eax, dword [edi + 0x30]
test eax, eax
je 0x405fd9
mov eax, dword [eax]
mov dword [edi + 0x30], eax
test eax, eax
je 0x405fd9
mov eax, dword [eax + 4]
test eax, eax
jne 0x405eb7
mov ecx, dword [ebp - 0x24]
mov eax, dword [edi + 0xc]
imul eax, dword [ecx]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bc0c
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bc0c
mov esp, ebp
pop ebp
ret 0x18