Function at 0x42f5e0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4be9e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov eax, dword [esp + 0x7c]
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x42f63a
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret 0xc
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push ebx
push ebx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x60]
push 0x20
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x59], 0xfe
je 0x42f688
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
add esp, 0x78
ret 0xc
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x5e]
and esi, 0xffff
and edi, 0xffff
mov eax, esi
imul eax, edi
mov ecx, dword [ebp + 0x338]
mov dword [esp + 0x8c], eax
cmp ecx, eax
je 0x42f711
cmp ecx, ebx
push eax
je 0x42f6e3
mov edx, dword [ebp + 0x328]
push edx
call fcn.004b0ac2
mov ecx, dword [ebp + 0x32c]
mov dword [ebp + 0x328], eax
mov eax, dword [esp + 0x94]
push eax
push ecx
call fcn.004b0ac2
add esp, 0x10
jmp 0x42f6fe
call fcn.004b17cf
mov edx, dword [esp + 0x90]
mov dword [ebp + 0x328], eax
push edx
call fcn.004b17cf
add esp, 8
mov dword [ebp + 0x32c], eax
mov eax, dword [esp + 0x8c]
mov dword [ebp + 0x338], eax
mov ecx, dword [ebp + 0x338]
mov dword [ebp + 0x330], edi
mov edi, dword [ebp + 0x328]
mov edx, ecx
xor eax, eax
mov dword [ebp + 0x334], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x8c], ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x338]
mov edi, dword [ebp + 0x32c]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0x334]
mov eax, dword [ebp + 0x330]
dec edi
mov dword [esp + 0x18], eax
imul edi, eax
mov dword [esp + 0x90], edi
mov ecx, dword [esp + 0x70]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x84], 1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov esi, ecx
jbe 0x42f7e3
push ecx
call fcn.004b17cf
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x42f7e3
mov dword [esp + 0x2c], esi
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ebx
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
push ebx
push ecx
call fcn.004037e0
add esp, 8
cmp eax, ebx
mov dword [esp + 0x4c], eax
mov esi, eax
jbe 0x42f83c
mov ecx, dword [esp + 0x3c]
push eax
cmp ecx, ebx
je 0x42f826
push ecx
call fcn.004b0ac2
add esp, 8
jmp 0x42f82e
call fcn.004b17cf
add esp, 4
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x42f840
mov dword [esp + 0x4c], esi
jmp 0x42f840
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
push eax
push edx
call fcn.004037e0
mov eax, dword [esp + 0x24]
add esp, 8
cmp eax, ebx
je 0x42f85f
push eax
call fcn.004b09d9
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x42f870
push eax
call fcn.004b09d9
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x42f881
push eax
call fcn.004b09d9
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42f892
push eax
call fcn.004b09d9
add esp, 4
mov ecx, dword [ebp + 0x334]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
jle 0x42f920
jmp 0x42f8c7
mov edi, dword [esp + 0x90]
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x330]
lea esi, [edx + edi]
mov edi, dword [ebp + 0x328]
mov edx, dword [esp + 0x8c]
add edi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x8c]
mov esi, dword [esp + 0x90]
add edi, ecx
sub esi, ecx
mov ecx, dword [ebp + 0x334]
inc eax
mov dword [esp + 0x8c], edi
cmp eax, ecx
mov dword [esp + 0x90], esi
jl 0x42f8c0
mov eax, dword [ebp + 0x338]
mov ecx, dword [ebp + 0x328]
push eax
push ecx
mov ecx, ebp
call fcn.0042fa50
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x24], eax
imul ecx, eax
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [ebp + 0xc], eax
sub edx, ecx
cmp eax, edx
mov dword [ebp + 0x10], edx
jae 0x42f957
add ecx, eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], ecx
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 0x228]
mov byte [esp + 0x84], bl
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
mov dword [ebp + 4], 1
cmp eax, ebx
pop edi
je 0x42f986
push eax
call fcn.004b09d9
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x42f997
push eax
call fcn.004b09d9
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x42f9a8
push eax
call fcn.004b09d9
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x42f9b9
push eax
call fcn.004b09d9
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00405af0
lea ecx, [esp + 0x18]
call fcn.00405af0
lea ecx, [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
call fcn.00405bf0
mov ecx, dword [esp + 0x78]
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0xc