Function at 0x4117c8
Capabilities:
Check if file exists
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3b4]
sub esp, 0x434
mov eax, dword [0x439c3c]
xor eax, ebp
mov dword [ebp + 0x3b0], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x3bc]
lea ebx, [esi + 4]
push ebx
mov dword [ebp - 0x6c], ebx
call fcn.00410de0
pop ecx
test eax, eax
jl 0x411a30
push edi
lea ecx, [esi + 8]
call fcn.0041165d
mov eax, dword [ebp + 0x3c0]
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
test eax, eax
jne 0x411825
push 0x80004003
call fcn.00419af0
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebx]
test eax, eax
je 0x41181b
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x3c0], 0
je 0x411874
push str.version1.0_encodingutf_8
lea ecx, [ebp - 0x64]
call fcn.004102f6
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.004116ff
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
test ecx, ecx
je 0x411a1e
call fcn.00410ce0
jmp 0x411a1e
mov eax, dword [edi]
and dword [ebp - 0x64], 0
test eax, eax
je 0x411882
mov eax, dword [eax]
jmp 0x411884
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4118c9
push edi
lea ecx, [ebp - 0x80]
call fcn.00410341
mov ecx, dword [ebx]
test ecx, ecx
je 0x41181b
mov edx, dword [ecx]
lea esi, [ebp - 0x64]
push esi
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x30]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x411a10
mov dword [ebp - 0x68], 0x80004005
call fcn.00410e07
mov esi, eax
test esi, esi
je 0x411a10
mov eax, dword [edi]
test eax, eax
je 0x4118e9
mov eax, dword [eax]
jmp 0x4118eb
xor eax, eax
mov ecx, dword [esi]
push eax
push 0
push esi
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
jle 0x411a0d
push ebx
call fcn.0041ac68
pop ecx
mov dword [ebp - 0x70], eax
test eax, eax
je 0x411a0d
push ebx
push 0
push eax
call fcn.00419dc0
mov eax, dword [edi]
xor edi, edi
add esp, 0xc
cmp eax, edi
je 0x411928
mov eax, dword [eax]
jmp 0x41192a
xor eax, eax
mov ecx, dword [esi]
push ebx
push dword [ebp - 0x70]
push eax
push edi
push esi
call dword [ecx + 0x14]
mov esi, 0x208
push esi
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.00419dc0
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp + 0x1a8]
push edi
push eax
call fcn.00419dc0
mov eax, dword [0x439b64]
add esp, 0xc
inc dword [0x439b64]
lea ecx, [ebp + 0x1a8]
push ecx
push eax
push 0x432888
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp + 0x1a8]
push 0x432880
push eax
call fcn.0041ddee
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x411a04
push esi
push 1
push ebx
push dword [ebp - 0x70]
call fcn.0041dca6
push esi
call fcn.0041dac8
add esp, 0x14
lea eax, [ebp + 0x1a8]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040fac5
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
cmp ecx, edi
je 0x41181b
mov edx, dword [ecx]
lea esi, [ebp - 0x64]
push esi
sub esp, 0x10
mov edi, esp
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
movsd dword es:[edi], dword [esi]
call dword [edx + 0x30]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp + 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x70]
call fcn.00419f06
pop ecx
mov ebx, dword [ebp - 0x6c]
cmp word [ebp - 0x64], 0
jne 0x411a1e
mov dword [ebp - 0x68], 0x80004005
cmp dword [ebp - 0x68], 0
jge 0x411a2d
push 0
mov ecx, ebx
call fcn.00410297
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp + 0x3b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419db1
add ebp, 0x3b4
leave
ret 8