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

Disassembly:
push 0x448
mov eax, 0x4939fb
call fcn.004626c9
mov edi, dword [ebp + 8]
mov esi, ecx
lea eax, [esi + 4]
push eax
mov dword [ebp - 0x42c], eax
call fcn.004115d0
xor ebx, ebx
pop ecx
cmp eax, ebx
jl 0x41364c
push edi
lea ecx, [esi + 8]
call fcn.00412fef
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
cmp eax, ebx
jne 0x4133b1
push 0x80004003
call fcn.0045edf0
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x42c]
mov eax, dword [eax]
cmp eax, ebx
je 0x4133a7
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0xc], ebx
je 0x413414
push str.version1.0_encodingutf_8
lea ecx, [ebp - 0x424]
call fcn.0040e047
lea eax, [ebp - 0x424]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0041326d
mov ecx, dword [ebp - 0x424]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x428], eax
cmp ecx, ebx
je 0x413632
call fcn.00411155
jmp 0x413632
mov eax, dword [edi]
mov dword [ebp - 0x430], ebx
cmp eax, ebx
je 0x413424
mov eax, dword [eax]
jmp 0x413426
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413488
push edi
lea ecx, [ebp - 0x454]
call fcn.0040e0d9
mov ecx, dword [ebp - 0x42c]
mov ecx, dword [ecx]
mov dword [ebp - 4], 1
cmp ecx, ebx
je 0x4133a7
mov edx, dword [ecx]
lea esi, [ebp - 0x430]
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]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x41361f
mov dword [ebp - 0x428], 0x80004005
call fcn.004114a4
cmp eax, ebx
je 0x41361f
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov esi, eax
cmp esi, ebx
je 0x41361f
mov eax, dword [edi]
cmp eax, ebx
je 0x4134b9
mov eax, dword [eax]
jmp 0x4134bb
xor eax, eax
mov ecx, dword [esi]
push eax
push ebx
push esi
call dword [ecx + 0x10]
mov dword [ebp - 0x434], eax
cmp eax, ebx
jle 0x41361f
push eax
call fcn.00461139
pop ecx
mov dword [ebp - 0x424], eax
cmp eax, ebx
je 0x41361f
push dword [ebp - 0x434]
push ebx
push eax
call fcn.00461390
mov edi, dword [edi]
add esp, 0xc
cmp edi, ebx
je 0x413500
mov edi, dword [edi]
jmp 0x413502
xor edi, edi
push dword [ebp - 0x434]
mov eax, dword [esi]
push dword [ebp - 0x424]
push edi
push ebx
push esi
call dword [eax + 0x14]
mov esi, 0x208
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00461390
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00461390
mov eax, dword [0x4bd6d4]
add esp, 0xc
inc dword [0x4bd6d4]
lea ecx, [ebp - 0x218]
push ecx
push eax
push 0x49bfe0
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push 0x49bfd8
push eax
call fcn.00463072
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x413613
push esi
push 1
push dword [ebp - 0x434]
push dword [ebp - 0x424]
call fcn.00462f3a
push esi
call fcn.00462d6f
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x444]
call fcn.0040d4b8
mov ecx, dword [ebp - 0x42c]
mov ecx, dword [ecx]
mov dword [ebp - 4], 2
cmp ecx, ebx
je 0x4133a7
mov edx, dword [ecx]
lea esi, [ebp - 0x430]
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]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x424]
call fcn.004611cd
pop ecx
cmp word [ebp - 0x430], bx
jne 0x413632
mov dword [ebp - 0x428], 0x80004005
cmp dword [ebp - 0x428], ebx
jge 0x413646
mov ecx, dword [ebp - 0x42c]
push ebx
call fcn.00410383
mov eax, dword [ebp - 0x428]
call fcn.0046274c
ret 8