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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov eax, dword [0x41f120]
xor eax, esp
mov dword [esp + 0x1f0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040d24d
call fcn.0040d25a
push 0x104
lea edx, [esp + 0x90]
push 0
push edx
mov esi, eax
call fcn.0040c6d0
add esp, 0x10
lea eax, [esp + 0x88]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x88]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x407af5
mov cx, word [0x41a870]
lea eax, [esp + 0x88]
mov word [edi], cx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407b13
mov edx, dword [str.extractData]
mov ecx, dword [0x41b1c8]
mov dword [eax], edx
mov edx, dword [0x41b1cc]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
push 0xa
lea eax, [esp + 0x194]
push eax
push esi
call fcn.0040c78f
add esp, 0xc
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x407b50
lea edi, [esp + 0x88]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x407b67
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x88]
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x407b90
mov ecx, dword [str..tmp]
mov dl, byte [0x41b1c0]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
mov dword [eax], ecx
push 0
mov byte [eax + 4], dl
push 0x40000000
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0x5c], 0
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x407bf6
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0xa0]
push eax
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x38], eax
je 0x407d87
mov dword [esp + 0x30], 0x4079e0
mov dword [esp + 0x34], 0x407a10
mov dword [esp + 0x10], 0x40a770
mov dword [esp + 0x14], 0x40a790
mov dword [esp + 0x24], 0x40a770
mov dword [esp + 0x28], 0x40a790
call fcn.0040a670
lea ecx, [esp + 0x48]
push ecx
call fcn.00407db0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0040a380
mov ebx, eax
xor esi, esi
add esp, 0x14
cmp ebx, esi
jne 0x407d10
cmp dword [esp + 0x60], esi
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], esi
jbe 0x407d04
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push esi
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0040a3f0
mov ebx, eax
add esp, 0x28
test ebx, ebx
jne 0x407d04
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
push edi
add eax, ecx
push eax
push edx
call fcn.0040cd10
mov eax, dword [esp + 0x48]
add esi, 1
add esp, 0xc
cmp esi, dword [esp + 0x60]
mov dword [eax], edi
jb 0x407c9c
mov ecx, dword [esp + 0xc]
push ecx
call dword [esp + 0x18]
add esp, 4
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00407dd0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004079c0
add esp, 0xc
test ebx, ebx
jne 0x407d64
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str._nEverything_is_Ok_n
call fcn.0040d188
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.0040c26c
mov esp, ebp
pop ebp
ret 0x10
cmp ebx, 0x80004001
je 0x407d87
cmp ebx, 0x8007000e
je 0x407d87
cmp ebx, 3
je 0x407d87
push ebx
push str._nERROR__d_n
call fcn.0040d188
add esp, 8
mov ecx, dword [esp + 0x1fc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040c26c
mov esp, ebp
pop ebp
ret 0x10