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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
mov dword [ebp - 4], eax
mov eax, dword [0x4cf256]
mov dword [ebp - 0xc], eax
mov ax, word [0x4cf25a]
mov word [ebp - 8], ax
mov al, byte [0x4cf25c]
mov byte [ebp - 6], al
mov dx, word [0x4cf25d]
mov word [ebp - 0xf0], dx
mov dl, byte [0x4cf25f]
mov byte [ebp - 0xee], dl
push 0
push 0
xor ecx, ecx
mov dl, 0x3e
mov eax, dword [ebp - 4]
call fcn.0041a9f0
mov eax, dword [ebp - 4]
call fcn.0041ad44
test eax, eax
je 0x41a75f
mov al, 3
jmp 0x41a9e9
mov edx, dword [0x4cf260]
mov dword [ebp - 0x104], edx
push 4
push 0
lea ecx, [ebp - 0x104]
mov dl, 0x23
mov eax, dword [ebp - 4]
call fcn.0041a9f0
mov eax, dword [ebp - 4]
call fcn.0041ad44
test eax, eax
je 0x41a792
mov al, 3
jmp 0x41a9e9
push 7
push 0
lea ecx, [ebp - 0xc]
mov dl, 0x34
mov eax, dword [ebp - 4]
call fcn.0041a9f0
mov eax, dword [ebp - 4]
call fcn.0041ad44
test eax, eax
je 0x41a7b6
mov al, 3
jmp 0x41a9e9
push 0
push 0x4dec34
push 3
lea edx, [ebp - 0xf0]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
push 0
push 0x4dec34
push 3
lea ecx, [ebp - 0x100]
push ecx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
xor eax, eax
mov dword [ebp - 0x108], eax
push 0
push 0x4dec34
push 1
mov edx, 0x4cec69
add edx, dword [ebp - 0x108]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
push 0
push 0x4dec34
push 1
lea ecx, [ebp - 0x100]
push ecx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x41a83f
mov al, 4
jmp 0x41a9e9
inc dword [ebp - 0x108]
cmp dword [ebp - 0x108], 0xff
jb 0x41a7f4
mov eax, dword [ebp - 4]
call fcn.0041ad44
test eax, eax
je 0x41a864
mov al, 3
jmp 0x41a9e9
cmp byte [0x4dead5], 0x76
je 0x41a874
mov al, 5
jmp 0x41a9e9
push 0
push 0x4dec34
push 3
lea edx, [ebp - 0xf0]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
push 0
push 0x4dec34
push 3
lea ecx, [ebp - 0x100]
push ecx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
xor eax, eax
mov dword [ebp - 0x10c], eax
push 0
push 0x4dec34
push 1
mov edx, 0x4ced68
add edx, dword [ebp - 0x10c]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
push 0
push 0x4dec34
push 1
lea ecx, [ebp - 0x100]
push ecx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x41a8fd
mov al, 4
jmp 0x41a9e9
inc dword [ebp - 0x10c]
cmp dword [ebp - 0x10c], 0xff
jb 0x41a8b2
mov eax, dword [ebp - 4]
call fcn.0041ad44
test eax, eax
je 0x41a922
mov al, 3
jmp 0x41a9e9
cmp byte [0x4dead5], 0x76
je 0x41a932
mov al, 5
jmp 0x41a9e9
push 0
push 0x4dec34
push 3
lea edx, [ebp - 0xf0]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
push 0
push 0x4dec34
push 3
lea ecx, [ebp - 0x100]
push ecx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
xor eax, eax
mov dword [ebp - 0x110], eax
push 0
push 0x4dec34
push 1
mov edx, 0x4ced68
add edx, dword [ebp - 0x110]
push edx
push dword [0x4dea64]
call sub.kernel32.dll_WriteFile_1
push 0
push 0x4dec34
push 1
lea ecx, [ebp - 0x100]
push ecx
push dword [0x4dea64]
call sub.kernel32.dll_ReadFile_1
cmp dword [0x4dec34], 0
jne 0x41a9b8
mov al, 4
jmp 0x41a9e9
inc dword [ebp - 0x110]
cmp dword [ebp - 0x110], 0xff
jb 0x41a970
mov eax, dword [ebp - 4]
call fcn.0041ad44
test eax, eax
je 0x41a9da
mov al, 3
jmp 0x41a9e9
cmp byte [0x4dead5], 0x76
je 0x41a9e7
mov al, 5
jmp 0x41a9e9
xor eax, eax
mov esp, ebp
pop ebp
ret