Function at 0x430598
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 0x43080f
push dword fs:[eax]
mov dword fs:[eax], esp
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 0x430608
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 0x43060f
dec eax
test eax, eax
jl 0x43061b
mov edx, dword [edi]
cmp byte [edx + eax], 0
je 0x43060e
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x430662
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 0x4307f1
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.00425ce4
jmp 0x4306f1
cmp byte [ebp - 0x15], 0xff
jne 0x4306ca
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 0x4307f1
inc byte [ebp - 0x15]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x10]
call fcn.004304a0
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.00425ce4
mov eax, dword [edi]
movzx eax, byte [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
cmp al, byte [edx]
je 0x430687
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 0x430738
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 0x430778
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 0x4307f1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00422198
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 [0x420c8c]
call fcn.0040b244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430816
lea eax, [ebp - 4]
mov edx, dword [0x420c8c]
call fcn.0040b244
pop eax
jmp eax