Function at 0x4636d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
mov edx, dword [esi + 0x10]
test edx, edx
je 0x463a67
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x463a67
mov eax, dword [esi + 0x50]
mov edi, dword [esi + 0x54]
mov dword [ebp - 0x10], eax
or eax, edi
je 0x4639e7
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4639e7
mov eax, dword [esi + 0x40]
mov ebx, dword [esi + 0x2c]
mov edx, ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x28]
mov ecx, eax
cmp dword [esi + 0x44], ebx
jg 0x4637c5
jl 0x463734
cmp dword [esi + 0x40], eax
ja 0x4637c5
mov ecx, dword [esi + 0x50]
mov edi, dword [esi + 0x48]
mov ebx, dword [esi + 0x4c]
mov edx, dword [esi + 0x2c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x54]
mov dword [ebp - 0xc], ecx
mov ecx, eax
mov eax, edi
add eax, dword [esi + 0x40]
mov dword [ebp - 0x18], eax
mov eax, ebx
adc eax, dword [esi + 0x44]
cmp edx, eax
jg 0x4637c2
jl 0x463766
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0x28], eax
jae 0x4637c2
mov ecx, dword [esi + 0x28]
sub edi, ecx
mov edx, dword [ebp + 0x10]
sbb ebx, dword [esi + 0x2c]
add edi, dword [esi + 0x40]
mov eax, dword [ebp + 0xc]
adc ebx, dword [esi + 0x44]
cmp edx, ebx
jg 0x463788
jl 0x463784
cmp eax, edi
jae 0x463788
mov edi, eax
mov ebx, edx
sub ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x14]
push edi
push ecx
push dword [ebp + 8]
call fcn.005edb70
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
sub eax, edi
sbb ecx, ebx
add dword [esi + 0x28], edi
mov dword [ebp - 8], ecx
adc dword [esi + 0x2c], ebx
add dword [ebp + 8], edi
mov ebx, dword [esi + 0x50]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov edi, dword [esi + 0x54]
mov dword [ebp - 0x10], ebx
jmp 0x4637ce
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp ebx, edi
jl 0x46389a
jg 0x4637e7
cmp eax, dword [ebp - 0x10]
jbe 0x46389a
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push eax
push ecx
push dword [esi + 0x10]
mov dword [ebp - 0x18], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x463819
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x463816
or eax, 0xffffffff
or ecx, eax
jmp 0x46381c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [esi + 0x28]
jne 0x463a59
cmp ecx, dword [esi + 0x2c]
jne 0x463a59
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push dword [esi + 0x50]
push dword [ebp + 8]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi + 0x50]
neg eax
mov ebx, dword [esi + 0x54]
sbb eax, eax
and eax, dword [ebp + 0x10]
cdq
cmp eax, edi
jne 0x463a59
cmp edx, ebx
jne 0x463a59
sub dword [ebp - 0xc], edi
mov ecx, dword [esi + 0x28]
sbb dword [ebp - 8], ebx
add ecx, edi
mov edx, dword [esi + 0x2c]
mov eax, dword [ebp - 0xc]
adc edx, ebx
add dword [ebp + 8], edi
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
cmp dword [ebp - 8], ebx
jg 0x4637e7
jl 0x463897
cmp eax, edi
ja 0x4637e7
mov ebx, dword [ebp - 8]
test ebx, ebx
jl 0x463a59
jg 0x4638b0
test eax, eax
je 0x463a59
nop dword [eax]
mov edi, dword [esi + 0x30]
mov ebx, dword [esi + 0x34]
sub edi, ecx
sbb ebx, edx
cmp ebx, dword [esi + 0x54]
jg 0x4638c6
jl 0x4638cc
cmp edi, dword [esi + 0x50]
jb 0x4638cc
mov edi, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
jg 0x4638e8
jl 0x4638da
cmp eax, edi
jae 0x4638e8
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
jmp 0x4638f0
mov eax, edi
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x10], 0
jl 0x463a59
jg 0x463904
test eax, eax
je 0x463a59
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push eax
push ecx
push dword [esi + 0x10]
mov dword [ebp - 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x463936
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x463933
or eax, 0xffffffff
or ecx, eax
jmp 0x463939
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp eax, dword [esi + 0x28]
jne 0x463a59
cmp ecx, dword [esi + 0x2c]
jne 0x463a59
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push edi
push dword [ebp - 0x14]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
cdq
cmp eax, edi
jne 0x463a59
cmp edx, ebx
jne 0x463a59
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x48], edi
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
mov dword [esi + 0x40], eax
push dword [ebp + 8]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x4c], ebx
call fcn.005edb70
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
sub eax, edi
mov ebx, dword [ebp - 8]
sbb ebx, ecx
mov dword [ebp - 0xc], eax
add dword [esi + 0x28], edi
mov dword [ebp - 8], ebx
adc dword [esi + 0x2c], ecx
add dword [ebp + 8], edi
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
test ebx, ebx
jg 0x4638b0
jl 0x463a59
test eax, eax
jne 0x4638b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ecx
push edx
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x463a1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x463a1a
or eax, 0xffffffff
or ecx, eax
jmp 0x463a20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp eax, dword [esi + 0x28]
jne 0x463a59
cmp ecx, dword [esi + 0x2c]
jne 0x463a59
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0
push eax
push edi
push ebx
push dword [esi + 0x10]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 8]
cmp eax, edi
jne 0x463a59
add dword [esi + 0x28], edi
mov eax, dword [ebp + 0x10]
adc dword [esi + 0x2c], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc