Function at 0x4e1598
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 0x4e180f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00407ee4
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 0x4e1608
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 0x4e160f
dec eax
test eax, eax
jl 0x4e161b
mov edx, dword [edi]
cmp byte [edx + eax], 0
je 0x4e160e
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4e1662
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 0x4e17f1
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.004d84a0
jmp 0x4e16f1
cmp byte [ebp - 0x15], 0xff
jne 0x4e16ca
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 0x4e17f1
inc byte [ebp - 0x15]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004e14a0
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.004d84a0
mov eax, dword [edi]
movzx eax, byte [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
cmp al, byte [edx]
je 0x4e1687
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 0x4e1738
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 0x4e1778
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 0x4e17f1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00432c98
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 [0x431758]
call fcn.0040e788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e1816
lea eax, [ebp - 4]
mov edx, dword [0x431758]
call fcn.0040e788
pop eax
jmp eax