Function at 0x431e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438c30
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 0x43207f
mov eax, dword [esi + 0x94]
mov edi, dword [ebp + 0x14]
mov ecx, dword [esi + 0x90]
mov ebx, dword [ebp + 0x10]
cmp eax, edi
jg 0x432085
jl 0x431ec9
cmp ecx, ebx
jae 0x432085
mov edx, dword [ebp + 0xc]
cmp edx, 0x10000
jae 0x431ee3
mov edx, dword [esi + 0x7c]
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x1c], edx
jmp 0x431eec
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.00436b10
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
xor eax, eax
push eax
push ecx
push ebx
push edi
call fcn.00436bc0
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 0x431f5d
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
push edx
push eax
push 0x44cd3c
push 0
push 0x528
push 0x44cb98
call fcn.0042ec70
add esp, 0x18
test edi, edi
je 0x431fdf
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 0x431f92
push 0x44cd30
push eax
push 0x52c
push 0x44cb98
call fcn.0042ec70
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x431fb0
push 0x44cd24
push 1
push 0x52d
push 0x44cb98
call fcn.0042f410
add esp, 0x10
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x24]
push eax
push ebx
call fcn.004337f0
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 0x431fe2
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp edx, eax
jae 0x4320b5
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 0x432028
push 0x44cd30
push eax
push 0x536
push 0x44cb98
call fcn.0042ec70
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x432046
push 0x44cd24
push 1
push 0x537
push 0x44cb98
call fcn.0042f410
add esp, 0x10
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x24]
push edx
push ebx
call fcn.004337f0
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 0x431fe9
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 0x4320b8
push edi
push ebx
push 0x44cd3c
push eax
push 0x53e
push 0x44cb98
call fcn.0042ec70
add esp, 0x18
jmp 0x4320b8
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 0x4320ec
push 0x44cd30
push eax
push 0x543
push 0x44cb98
call fcn.0042ec70
add esp, 0x10
cmp dword [ebp - 0x14], edi
je 0x43210a
push 0x44cd24
push 1
push 0x544
push 0x44cb98
call fcn.0042f410
add esp, 0x10
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x43216b
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 0x43216b
jl 0x432132
mov eax, dword [esi + 0x90]
cmp eax, ecx
jae 0x43216b
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.004337f0
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