Function at 0x41a3d6
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d6d8
push 0x42adb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8ac
push ebx
push esi
push edi
mov esi, ecx
or dword [ebp - 0x124], 0xffffffff
or dword [ebp - 0x33c], 0xffffffff
and dword [ebp - 0x230], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x558]
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x76c]
push eax
push dword [ebp + 8]
call fcn.0042ae88
add esp, 0x14
lea eax, [ebp - 0x76c]
push eax
lea eax, [ebp - 0x120]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x120]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
call ebx
push dword [ebp + 8]
lea eax, [ebp - 0x338]
push eax
call edi
push 0x4991e4
lea eax, [ebp - 0x338]
push eax
call ebx
lea eax, [ebp - 0x22c]
push eax
xor ebx, ebx
push ebx
push 0x4991e0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x41a668
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp eax, 0xffffffff
je 0x41a668
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x41a4e1
mov eax, dword [esi + 0x28]
mov dword [ebp + 0xc], eax
mov eax, dword [eax*4 + 0x4991bc]
mov dword [ebp - 0x664], eax
push eax
call fcn.0042a4e0
pop ecx
mov dword [ebp - 0x668], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x34c], ebx
mov dword [ebp - 0x348], ebx
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x340]
cmp dword [ebp - 0x348], eax
jge 0x41a5c5
mov eax, dword [ebp - 0x348]
shl eax, 4
mov ecx, dword [esi + 0x38]
add eax, ecx
mov ebx, dword [eax + 4]
mov dword [ebp - 0x770], ebx
test ebx, ebx
jle 0x41a572
mov eax, dword [eax]
mov dword [ebp - 0x8b8], eax
push 0
lea ecx, [ebp - 0x774]
push ecx
push ebx
push eax
push dword [ebp - 0x124]
call edi
test eax, eax
je 0x41a668
cmp ebx, dword [ebp - 0x774]
jne 0x41a668
mov eax, dword [ebp - 0x340]
dec eax
cmp dword [ebp - 0x348], eax
jge 0x41a5b8
push 0
lea eax, [ebp - 0x774]
push eax
push dword [ebp - 0x668]
push dword [ebp - 0x664]
push dword [ebp - 0x124]
call edi
test eax, eax
je 0x41a668
mov eax, dword [ebp - 0x668]
cmp eax, dword [ebp - 0x774]
jne 0x41a668
inc dword [ebp - 0x348]
xor ebx, ebx
jmp 0x41a516
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x124], 0xffffffff
cmp dword [esi + 0x2c], ebx
je 0x41a62e
lea eax, [ebp - 0x8b4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x33c], eax
cmp eax, 0xffffffff
je 0x41a637
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x338]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x41a668
push dword [ebp - 0x33c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x33c], 0xffffffff
jmp 0x41a637
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x41a668
cmp dword [ebp + 0x10], ebx
je 0x41a65e
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x54]
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x60], eax
mov dword [ebp - 0x230], 1
or dword [ebp - 4], 0xffffffff
call fcn.0041a688
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc