Function at 0x431fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
je 0x4321cf
mov eax, dword [esi + 0x94]
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0x90]
mov ebx, dword [ebp + 0x10]
cmp eax, edi
jg 0x4321d5
jl 0x432019
cmp ecx, ebx
jae 0x4321d5
mov edx, dword [ebp + 0xc]
cmp edx, 0x10000
jae 0x432033
mov edx, dword [esi + 0x7c]
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x1c], edx
jmp 0x43203c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edi
mov edi, ebx
mov ebx, dword [ebp + 0x14]
sub edi, ecx
sbb ebx, eax
xor eax, eax
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
push edi
call fcn.004355d0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
push ecx
push ebx
push edi
call fcn.00435680
mov edx, dword [esi + 0x94]
mov ecx, dword [esi + 0xc]
mov edi, eax
mov eax, dword [esi + 0x90]
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4320ad
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push edx
push eax
push 0x441b7c
push 0
push 0x528
push 0x440eb8
call fcn.0042c7c0
add esp, 0x18
test edi, edi
je 0x43212f
mov ebx, dword [ebp - 0x1c]
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x14]
push 0
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4320e2
push 0x440788
push eax
push 0x52c
push 0x440eb8
call fcn.0042c7c0
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x432100
push 0x441b70
push 1
push 0x52d
push 0x440eb8
call fcn.0042d090
add esp, 0x10
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x24]
push eax
push ebx
call fcn.0042c590
mov ecx, dword [ebp - 0x14]
mov edx, dword [esi + 0x90]
add edx, ecx
mov dword [esi + 0x90], edx
mov eax, dword [esi + 0x94]
adc eax, 0
mov dword [esi + 0x94], eax
jmp 0x432132
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp edx, eax
jae 0x432205
mov edi, dword [ebp - 0x18]
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x432178
push 0x440788
push eax
push 0x536
push 0x440eb8
call fcn.0042c7c0
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x432196
push 0x441b70
push 1
push 0x537
push 0x440eb8
call fcn.0042d090
add esp, 0x10
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x24]
push edx
push ebx
call fcn.0042c590
mov eax, dword [ebp - 0x14]
mov edx, dword [esi + 0x90]
add edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x90], edx
mov ecx, dword [esi + 0x94]
adc ecx, 0
inc eax
mov dword [esi + 0x94], ecx
mov dword [ebp - 0x1c], eax
jmp 0x432139
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0xc]
push 0
push 0
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x432208
push edi
push ebx
push 0x441b7c
push eax
push 0x53e
push 0x440eb8
call fcn.0042c7c0
add esp, 0x18
jmp 0x432208
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
lea edx, [ebp - 0x14]
push 0
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43223c
push 0x440788
push eax
push 0x543
push 0x440eb8
call fcn.0042c7c0
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x43225a
push 0x441b70
push 1
push 0x544
push 0x440eb8
call fcn.0042d090
add esp, 0x10
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4322bb
mov edx, dword [ebp + 0x14]
mov ecx, edi
xor eax, eax
add ecx, ebx
adc eax, edx
mov edx, dword [esi + 0x94]
cmp edx, eax
jg 0x4322bb
jl 0x432282
mov eax, dword [esi + 0x90]
cmp eax, ecx
jae 0x4322bb
mov eax, dword [esi + 0x90]
mov ecx, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 0x14], eax
sub edi, eax
add eax, ecx
push edi
push eax
lea ecx, [esi + 0x24]
call fcn.0042c590
mov ecx, dword [esi + 0x90]
add ecx, edi
mov dword [esi + 0x90], ecx
mov eax, dword [esi + 0x94]
adc eax, 0
mov dword [esi + 0x94], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14