Function at 0x47b7f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebx + 0x44]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edi
mov ecx, dword [eax + 0x18]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x1c]
sbb edx, dword [eax + 0x14]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov ecx, esi
adc edx, 0
xor eax, eax
add ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
adc eax, ecx
mov dword [ebp - 8], ecx
cmp eax, edx
ja 0x47b9ca
jb 0x47b84c
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
ja 0x47b9ca
mov eax, dword [ebx + 0x10]
imul eax, esi
cmp dword [ebp + 0x18], eax
jb 0x47b9ca
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x40], eax
test eax, eax
je 0x47b9b1
mov eax, dword [eax + 4]
test eax, eax
je 0x47b9b1
mov edx, dword [ebp + 0xc]
nop
cmp edx, dword [eax + 0x14]
jb 0x47b996
ja 0x47b894
cmp edi, dword [eax + 0x10]
jb 0x47b996
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x18]
cmp edx, ecx
ja 0x47b996
jb 0x47b8ac
cmp edi, esi
ja 0x47b996
sub esi, edi
sbb ecx, edx
add esi, 1
adc ecx, 0
xor edi, edi
cmp edi, ecx
jb 0x47b8c9
ja 0x47b8c5
mov edi, dword [ebp + 0x10]
cmp edi, esi
jbe 0x47b8cc
mov edi, esi
jmp 0x47b8cc
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
sub ecx, dword [eax + 0x10]
sbb edx, dword [eax + 0x14]
add ecx, dword [eax]
adc edx, dword [eax + 4]
mov eax, ecx
and eax, edx
cmp eax, 0xffffffff
jne 0x47b8ed
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x47b953
push edx
push ecx
push 0
push dword [ebx + 0x10]
call fcn.005dd6d0
add eax, dword [ebx + 0x20]
lea ecx, [ebp + 0xc]
push 0
adc edx, dword [ebx + 0x24]
push ecx
push eax
push dword [ebx + 0x18]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x47b92b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47b9b1
push 0
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebx + 0x10]
imul eax, edi
push eax
push dword [ebp + 0x14]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47b9b1
mov eax, dword [ebx + 0x10]
imul eax, edi
cmp dword [ebp + 0x18], eax
jne 0x47b9b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x32
je 0x47b976
mov eax, dword [ebx + 0x10]
mov esi, dword [ebp + 0x10]
imul eax, edi
sub esi, edi
mov dword [ebp + 0x10], esi
add dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x1c]
add dword [eax], edi
jmp 0x47b983
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, esi
mov esi, dword [ebp + 0x10]
add dword [ebp - 4], edi
mov edx, dword [ebp - 8]
adc edx, 0
mov dword [ebp - 8], edx
test esi, esi
je 0x47b9b1
mov edi, dword [ebp - 4]
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x47b9b1
mov eax, dword [eax]
mov dword [ebx + 0x40], eax
test eax, eax
je 0x47b9b1
mov eax, dword [eax + 4]
test eax, eax
jne 0x47b880
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebx + 0x10]
imul eax, dword [ecx]
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18