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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x1c]
xor eax, eax
push ebp
push 0x43021c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebx]
mov eax, esi
call fcn.0042ff84
mov eax, dword [edi]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.0040506c
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_SetFilePointerEx
test al, al
je 0x430015
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [edi]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_ReadFile
mov eax, dword [ebp - 0x14]
dec eax
jmp 0x43001c
dec eax
test eax, eax
jl 0x430028
mov edx, dword [edi]
cmp byte [edx + eax], 0
je 0x43001b
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x43006f
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
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 5], 0
add dword [ebx], 6
jmp 0x4301fe
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x15], 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x20]
mov eax, edi
call fcn.0042551c
jmp 0x4300fe
cmp byte [ebp - 0x15], 0xff
jne 0x4300d7
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
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 5], 0
add dword [ebx], 6
jmp 0x4301fe
inc byte [ebp - 0x15]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
call fcn.0042fbe8
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x20]
mov eax, edi
call fcn.0042551c
mov eax, dword [edi]
movzx eax, byte [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
cmp al, byte [edx]
je 0x430094
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_SetFilePointerEx
test al, al
je 0x430145
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
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 - 0x14], 0
jne 0x430185
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
mov eax, dword [ebx]
mov edx, dword [esi]
mov byte [edx + eax + 5], 0
add dword [ebx], 6
jmp 0x4301fe
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00421f08
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [edi]
movzx ecx, byte [ecx]
mov byte [edx + eax], cl
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax + edx - 1]
mov edx, dword [ebx]
mov ecx, dword [esi]
mov byte [ecx + edx + 1], al
mov eax, dword [ebx]
mov edx, dword [esi]
movzx ecx, byte [ebp - 0x15]
mov byte [edx + eax + 2], cl
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 1]
mov byte [edx + eax + 3], cl
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 2]
mov byte [edx + eax + 4], cl
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 3]
mov byte [edx + eax + 5], cl
add dword [ebx], 6
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 0x430223
lea eax, [ebp - 4]
mov edx, dword [0x420cf8]
call fcn.0040b244
pop eax
jmp eax