Function at 0x42fec4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
xor eax, eax
push ebp
push 0x4300a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx]
mov eax, esi
call fcn.0042feac
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
xor ecx, ecx
mov edx, edi
call fcn.0040506c
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_SetFilePointerEx
test al, al
je 0x42ff3b
push 0
lea eax, [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x10]
dec eax
jmp 0x42ff42
dec eax
test eax, eax
jl 0x42ff51
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
cmp byte [edx + eax], 0
je 0x42ff41
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42ff8f
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 1], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 2], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 3], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 4], 0
add dword [ebx], 5
jmp 0x430082
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
call fcn.0042551c
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
push 0
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_SetFilePointerEx
test al, al
je 0x42ffdf
push 0
lea eax, [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WriteFile
cmp dword [ebp - 0x10], 0
jne 0x430016
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 1], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 2], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 3], 0
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 4], 0
add dword [ebx], 5
jmp 0x430082
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 4]
mov eax, edi
call fcn.00421f08
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, byte [ecx]
mov byte [edx + eax], cl
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, byte [eax + edi - 1]
mov edx, dword [ebx]
mov ecx, dword [esi]
mov byte [ecx + edx + 1], al
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 1]
mov byte [edx + eax + 2], cl
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 2]
mov byte [edx + eax + 3], cl
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 3]
mov byte [edx + eax + 4], cl
add dword [ebx], 5
lea eax, [ebp - 4]
mov edx, dword [0x420cf8]
call fcn.0040b244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4300a7
lea eax, [ebp - 4]
mov edx, dword [0x420cf8]
call fcn.0040b244
pop eax
jmp eax