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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x14]
push edi
push 0
push eax
mov ebx, ecx
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 4]
push eax
push dword [ebx]
call esi
test eax, eax
je 0x401a25
mov edx, dword [ebp + 8]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4017e5
push 0
sub ecx, edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push edx
push dword [ebx]
call esi
test eax, eax
je 0x401a3a
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a4f
mov edi, dword [ebp - 8]
test edi, edi
je 0x401a1a
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ecx
cmp eax, ecx
je 0x401900
mov edi, dword [eax]
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
cmp esi, edi
je 0x4018e9
push 0
lea eax, [ebp - 0x18]
mov byte [ebp + 8], 5
push eax
push 1
lea eax, [ebp + 8]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019a4
mov eax, dword [esi]
push 0
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019a4
mov eax, dword [ebp - 8]
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4019a4
push 0
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a4f
cmp dword [ebp - 0x10], 0
jne 0x401930
add esi, 4
cmp esi, edi
jne 0x401850
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0xc], eax
cmp eax, ecx
jne 0x401840
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 8]
push 0
lea eax, [ebp - 0x24]
mov byte [ebp + 8], 4
push eax
push 1
lea eax, [ebp + 8]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x4019f2
mov dword [ebp - 0x14], 0x451480
lea eax, [ebp - 0x14]
push 0x459034
jmp 0x401a5e
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x24]
push 0
push eax
push 1
lea eax, [ebp + 8]
mov byte [ebp + 8], 6
push eax
push dword [ebx]
call esi
test eax, eax
je 0x401a64
mov eax, dword [ebp - 0x10]
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebx]
call esi
test eax, eax
je 0x401a64
push 0
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a4f
push 0
lea eax, [ebp - 0x24]
mov byte [ebp + 8], 4
push eax
push 1
lea eax, [ebp + 8]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x4019b8
mov dword [ebp - 0x14], 0x451480
lea eax, [ebp - 0x14]
push 0x459034
jmp 0x401a5e
mov eax, dword [ebp - 8]
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x24]
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x4019e6
mov dword [ebp - 0x14], 0x451480
lea eax, [ebp - 0x14]
push 0x459034
jmp 0x401a5e
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 0x24]
mov dword [ebp + 8], edi
push eax
push 4
lea eax, [ebp + 8]
push eax
push dword [ebx]
call esi
test eax, eax
jne 0x401a1a
mov dword [ebp - 0x14], 0x451480
lea eax, [ebp - 0x14]
push 0x459034
jmp 0x401a5e
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x459034
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x451480
push eax
call fcn.0042f51b
push 0x459034
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x45148c
push eax
call fcn.0042f51b
mov dword [ebp + 8], 0x451474
lea eax, [ebp + 8]
push 0x459034
push eax
call fcn.0042f51b
push 0x459034
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x451480
push eax
call fcn.0042f51b
int3