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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4503bb
mov eax, dword fs:[0]
push eax
sub esp, 0x33c
mov eax, dword [0x469090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov esi, ecx
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x33c], edi
jb 0x41a4aa
mov eax, dword [eax]
lea ecx, [ebp - 0x338]
push ecx
push 0
push 0x100
lea edx, [ebp - 0x110]
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
cmp eax, 0x100
jae 0x41a4dd
mov byte [ebp + eax - 0x110], 0
jmp 0x41a4ea
cmp byte [ebp - 0x11], 0
je 0x41a4ea
mov byte [ebp - 0x110], 0
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x344]
push ecx
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x110]
call fcn.00412ce0
mov esi, eax
test esi, esi
je 0x41a6bf
push str._found
push str.INFO
mov ecx, edi
call fcn.0040c980
mov edi, dword [ebp - 0x344]
mov edx, dword [ebp - 0x348]
mov dword [ebp - 0x330], edi
inc edi
push edi
mov dword [ebp - 0x340], edx
call fcn.0043723a
push edi
xor edi, edi
mov ebx, eax
push edi
push ebx
call fcn.0043c0c0
mov eax, dword [ebp - 0x340]
add esp, 0x10
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [ebp - 0x330]
push edi
lea ecx, [ebp - 0x338]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov dword [ebp - 0x318], 7
mov dword [ebp - 0x31c], edi
mov word [ebp - 0x32c], ax
push 7
mov eax, str.write_
lea ecx, [ebp - 0x32c]
mov dword [ebp - 4], edi
call fcn.00402190
mov esi, eax
mov eax, dword [ebp - 0x334]
add eax, 8
push edi
mov dword [ebp - 0x330], eax
push eax
or eax, 0xffffffff
call fcn.00402420
mov ecx, eax
push 5
mov eax, str._to
call fcn.00402190
mov edi, dword [ebp - 0x334]
push 0
mov esi, eax
add edi, 0x24
push edi
or eax, 0xffffffff
call fcn.00402420
mov eax, dword [ebp - 0x32c]
mov esi, 8
cmp dword [ebp - 0x318], esi
jae 0x41a603
lea eax, [ebp - 0x32c]
mov ecx, dword [ebp - 0x33c]
push eax
push str.INFO
call fcn.0040c980
cmp dword [edi + 0x14], esi
jb 0x41a61b
mov edi, dword [edi]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a659
mov edx, dword [ebp - 0x338]
push 0
lea ecx, [ebp - 0x330]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x41a69f
mov edi, dword [ebp - 0x330]
cmp dword [edi + 0x14], esi
jb 0x41a666
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push edi
push str._s__d
lea eax, [ebp - 0x310]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x310]
push ecx
mov ecx, dword [ebp - 0x33c]
push str.ERROR
call fcn.0040c980
push ebx
call fcn.00437245
add esp, 4
cmp dword [ebp - 0x318], esi
jb 0x41a6bf
mov edx, dword [ebp - 0x32c]
push edx
call fcn.00437245
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043722b
mov esp, ebp
pop ebp
ret 0xc