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

Disassembly:
mov eax, 0x46b828
call fcn.0045b030
sub esp, 0x43c
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
push ebx
call fcn.00403e30
xor edi, edi
pop ecx
cmp eax, edi
jl 0x403c42
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
je 0x403b2a
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esi + 8]
call fcn.00403359
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
cmp dword [ebx], edi
jne 0x403b4e
push 0x80004003
call fcn.0044b02b
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp dword [ebx], edi
jne 0x403b66
push 0x80004003
call fcn.0044b02b
mov eax, dword [ebx]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0xc], edi
je 0x403ba7
push str.version1.0_encodingutf_8
lea ecx, [ebp + 8]
call fcn.00403305
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov dword [ebp - 4], edi
call fcn.00403e72
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp ecx, edi
je 0x403c32
call fcn.004033a0
jmp 0x403c32
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov eax, dword [esi]
cmp eax, edi
je 0x403bb7
mov eax, dword [eax]
jmp 0x403bb9
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403c53
push esi
lea ecx, [ebp - 0x38]
call fcn.00403df0
mov esi, eax
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0
mov dword [ebp - 4], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x403bf0
push 0x80004003
call fcn.0044b02b
lea edx, [ebp - 0x18]
lea esi, [ebp - 0x28]
push edx
mov eax, dword [ebx]
sub esp, 0x10
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x30]
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x403c23
push eax
call fcn.0044b02b
xor edi, edi
cmp word [ebp - 0x18], di
jne 0x403c32
mov dword [ebp + 0xc], 0x80004005
cmp dword [ebp + 0xc], edi
jge 0x403c3f
push edi
mov ecx, ebx
call fcn.00404a03
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
mov dword [ebp + 0xc], 0x80004005
call fcn.00403e61
mov esi, eax
cmp esi, edi
je 0x403c25
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
je 0x403c72
mov eax, dword [eax]
jmp 0x403c74
xor eax, eax
mov ecx, dword [esi]
push eax
push edi
push esi
call dword [ecx + 0x10]
cmp eax, edi
mov dword [ebp - 0x14], eax
jle 0x403c25
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
je 0x403c25
push dword [ebp - 0x14]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
cmp eax, edi
je 0x403cac
mov eax, dword [eax]
jmp 0x403cae
xor eax, eax
push dword [ebp - 0x14]
mov ecx, dword [esi]
push dword [ebp - 0x10]
push eax
push edi
push esi
call dword [ecx + 0x14]
mov esi, 0x208
lea eax, [ebp - 0x448]
push esi
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x448]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x240]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [0x48064c]
add esp, 0xc
inc dword [0x48064c]
lea ecx, [ebp - 0x240]
push ecx
push eax
lea eax, [ebp - 0x448]
push 0x480644
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x240]
push 0x48063c
push eax
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x403de1
push esi
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea eax, [ebp - 0x240]
mov word [ebp - 0x28], 8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, edi
mov dword [ebp - 0x20], eax
jne 0x403d7f
lea eax, [ebp - 0x240]
test eax, eax
je 0x403d7f
push 0x8007000e
call fcn.0044b02b
lea esi, [ebp - 0x28]
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0
mov dword [ebp - 4], 2
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x403d9f
push 0x80004003
call fcn.0044b02b
lea edx, [ebp - 0x18]
lea esi, [ebp - 0x38]
push edx
mov eax, dword [ebx]
sub esp, 0x10
mov edi, esp
mov ecx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x30]
or dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x403dd2
push eax
call fcn.0044b02b
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x403c25