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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x209
lea ecx, [ebp - 0x14]
call fcn.0043dd9c
push 9
pop ecx
mov esi, 0x4a9b20
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 1
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4c0fb8
call fcn.0044bafc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040e1aa
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
movzx eax, al
push 0xc0000000
push dword [ebp + 8]
lea ecx, [ebp - 4]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], ebx
call fcn.004051d2
cmp dword [ebp - 4], ebx
je 0x414cc3
push dword [ebp - 4]
call fcn.004875b9
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov edi, eax
call fcn.0043908b
add esp, 0x14
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043dc74
mov esi, dword [ebp - 0x28]
push ebx
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 8]
cmp eax, 3
jbe 0x414cbb
push 6
add eax, esi
push ebx
push eax
call fcn.00492e00
mov eax, dword [ebp - 8]
add eax, esi
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x20], eax
mov ax, word [esi]
inc edx
cmp ax, 0xfeff
push 2
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0xff
pop edi
mov ecx, 0xffff
jne 0x414a49
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
cmp ax, 0xfffe
jne 0x414a5c
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x1c], ecx
mov word [ebp - 0x3c], bx
xor eax, eax
lea edi, [ebp - 0x3a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
jmp 0x414cb2
xor ecx, ecx
mov eax, esi
cmp dword [ebp - 0x18], 3
jne 0x414a8a
movzx di, byte [eax]
movzx dx, byte [eax + 1]
shl edi, 8
add edx, edi
jmp 0x414a90
mov edx, dword [ebp - 0x1c]
and dx, word [eax]
add eax, dword [ebp - 0xc]
mov word [ebp + ecx*2 - 0x3c], dx
inc ecx
cmp ecx, 9
jl 0x414a74
mov eax, dword [ebp - 0x3c]
xor edi, edi
or byte [ebp + edi*2 - 0x3c], 0x20
inc edi
cmp edi, 6
jl 0x414aa3
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
je 0x414ba2
cmp word [ebp - 0x3c], 0x63
jne 0x414b15
cmp word [ebp - 0x3a], 0x6f
jne 0x414c7a
cmp word [ebp - 0x38], 0x70
jne 0x414c7a
cmp word [ebp - 0x36], 0x79
jne 0x414c7a
cmp word [ebp - 0x34], 0x66
jne 0x414c7a
cmp word [ebp - 0x32], 0x69
jne 0x414c7a
cmp word [ebp - 0x30], 0x6c
jne 0x414c7a
cmp word [ebp - 0x2e], 0x65
jne 0x414c7a
cmp word [ebp - 0x2c], 0x73
je 0x414b6d
cmp word [ebp - 0x3c], 0x64
jne 0x414c7a
cmp word [ebp - 0x3a], 0x65
jne 0x414c7a
cmp word [ebp - 0x38], 0x6c
jne 0x414c7a
cmp word [ebp - 0x36], 0x66
jne 0x414c7a
cmp word [ebp - 0x34], 0x69
jne 0x414c7a
cmp word [ebp - 0x32], 0x6c
jne 0x414c7a
cmp word [ebp - 0x30], 0x65
jne 0x414c7a
cmp word [ebp - 0x2e], 0x73
jne 0x414c7a
mov eax, esi
sub eax, dword [ebp - 0x24]
push ebx
cdq
push edx
push eax
push dword [ebp - 4]
call fcn.0043908b
add esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x3b
call dword [sym.imp.KERNEL32.DLL_ReadFile]
jmp 0x414c7a
cmp ax, 0x3b
jne 0x414c7a
cmp word [ebp - 0x3a], 0x6f
jne 0x414c19
cmp word [ebp - 0x38], 0x70
jne 0x414c7a
cmp word [ebp - 0x36], 0x79
jne 0x414c7a
cmp word [ebp - 0x34], 0x66
jne 0x414c7a
cmp word [ebp - 0x32], 0x69
jne 0x414c7a
cmp word [ebp - 0x30], 0x6c
jne 0x414c7a
cmp word [ebp - 0x2e], 0x65
jne 0x414c7a
cmp word [ebp - 0x2c], 0x73
jne 0x414c7a
mov eax, esi
sub eax, dword [ebp - 0x24]
push ebx
cdq
push edx
push eax
push dword [ebp - 4]
call fcn.0043908b
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 0x43
jmp 0x414c62
cmp word [ebp - 0x3a], 0x65
jne 0x414c7a
cmp word [ebp - 0x38], 0x6c
jne 0x414c7a
cmp word [ebp - 0x36], 0x66
jne 0x414c7a
cmp word [ebp - 0x34], 0x69
jne 0x414c7a
cmp word [ebp - 0x32], 0x6c
jne 0x414c7a
cmp word [ebp - 0x30], 0x65
jne 0x414c7a
cmp word [ebp - 0x2e], 0x73
jne 0x414c7a
mov eax, esi
sub eax, dword [ebp - 0x24]
push ebx
cdq
push edx
push eax
push dword [ebp - 4]
call fcn.0043908b
mov dword [ebp - 0x10], 0x44
add esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp esi, dword [ebp - 0x20]
jae 0x414cbb
xor eax, eax
cmp dword [ebp - 0x18], 3
jne 0x414c9c
movzx cx, byte [esi]
movzx dx, byte [esi + 1]
shl ecx, 8
add ecx, edx
mov word [ebp + edi*2 - 0x3c], cx
jmp 0x414ca4
xor eax, eax
mov ax, word [esi]
and eax, dword [ebp - 0x1c]
add esi, dword [ebp - 0xc]
cmp ax, 0xa
je 0x414cb2
cmp esi, dword [ebp - 0x20]
jb 0x414c7f
cmp esi, dword [ebp - 0x20]
jb 0x414a70
lea ecx, [ebp - 0x28]
call fcn.00437e1a
lea ecx, [ebp - 4]
call fcn.00402b5a
lea ecx, [ebp - 0x14]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret