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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b191
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x465944]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x428], eax
mov edi, dword [ebp + 8]
lea esi, [eax + 4]
call fcn.0040d590
mov edx, eax
mov dword [ebp - 0x424], edx
test edx, edx
jne 0x40e0e6
mov eax, 0x80004005
jmp 0x40e1c8
mov ecx, dword [esi]
test ecx, ecx
je 0x40e0f8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x424]
mov dword [esi], 0
mov eax, dword [edx]
push esi
push edx
call dword [eax + 0x78]
test eax, eax
js 0x40e1c8
mov eax, dword [ebp - 0x428]
lea ecx, [eax + 8]
mov dword [ebp - 0x424], ecx
cmp ecx, edi
je 0x40e143
call fcn.0040fc60
mov eax, dword [ebp - 0x424]
mov ecx, dword [edi]
mov dword [eax], ecx
test ecx, ecx
je 0x40e13d
lea eax, [ecx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x40e492
mov eax, dword [ecx]
push 0xffffffffffffffff
push ecx
call dword [eax + 0x4c]
mov ecx, dword [esi]
test ecx, ecx
je 0x40e49c
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x50]
cmp dword [ebp + 0xc], 0
je 0x40e1e5
push 0x44f13c
lea ecx, [ebp - 0x424]
call fcn.0040b220
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 4], 0
call fcn.0040f5d0
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
call fcn.0040fc60
test edi, edi
jns 0x40e1c6
mov ecx, dword [esi]
test ecx, ecx
je 0x40e1c6
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a853
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi]
mov dword [ebp - 0x42c], 0
test eax, eax
je 0x40e1f9
mov eax, dword [eax]
jmp 0x40e1fb
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e293
mov edi, dword [edi]
mov eax, 8
mov word [ebp - 0x440], ax
test edi, edi
je 0x40e241
mov edi, dword [edi]
test edi, edi
je 0x40e241
push edi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov dword [ebp - 0x438], eax
test eax, eax
je 0x40e4a6
jmp 0x40e24b
mov dword [ebp - 0x438], 0
mov edx, dword [esi]
mov dword [ebp - 4], 1
test edx, edx
je 0x40e4b0
movups xmm0, xmmword [ebp - 0x440]
mov ecx, dword [edx]
lea eax, [ebp - 0x42c]
push eax
sub esp, 0x10
mov eax, esp
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0x30]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x40e47a
call fcn.0040d590
test eax, eax
je 0x40e475
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov ecx, eax
mov dword [ebp - 0x430], ecx
test ecx, ecx
je 0x40e475
mov eax, dword [edi]
test eax, eax
je 0x40e2c0
mov edx, dword [eax]
jmp 0x40e2c2
xor edx, edx
mov eax, dword [ecx]
push edx
push 0
push ecx
call dword [eax + 0x10]
mov dword [ebp - 0x428], eax
test eax, eax
jle 0x40e475
push eax
call fcn.0042f51a
add esp, 4
mov dword [ebp - 0x424], eax
test eax, eax
je 0x40e475
push dword [ebp - 0x428]
push 0
push eax
call fcn.0042c930
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x40e30b
mov edx, dword [eax]
jmp 0x40e30d
xor edx, edx
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x430]
mov edi, dword [ebp - 0x424]
push edi
push edx
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x14]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0042c930
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042c930
mov ecx, dword [0x4651e4]
add esp, 0xc
lea eax, [ecx + 1]
mov dword [0x4651e4], eax
lea eax, [ebp - 0x218]
push eax
push ecx
push 0x44f17c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push 0x44f184
push eax
call fcn.00433dd4
add esp, 8
mov dword [ebp - 0x430], eax
test eax, eax
je 0x40e460
push eax
push 1
push dword [ebp - 0x428]
push edi
call fcn.00434119
push dword [ebp - 0x430]
call fcn.00433e61
add esp, 0x14
mov eax, 8
mov word [ebp - 0x450], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x448], eax
test eax, eax
je 0x40e4ba
movups xmm0, xmmword [ebp - 0x450]
mov ecx, esi
mov dword [ebp - 4], 2
movups xmmword [ebp - 0x440], xmm0
call fcn.0040b720
movups xmm0, xmmword [ebp - 0x440]
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
push eax
movups xmmword [ecx], xmm0
call dword [edx + 0x30]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x450]
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.0042f515
add esp, 4
jmp 0x40e47a
push dword [ebp - 0x424]
mov edi, 0x80004005
call fcn.0042f515
add esp, 4
jmp 0x40e47a
mov edi, 0x80004005
cmp word [ebp - 0x42c], 0
jne 0x40e1b0
mov edi, 0x80004005
jmp 0x40e1b4
push 0x80004003
call fcn.00429da0
push 0x80004003
call fcn.00429da0
push 0x8007000e
call fcn.00429da0
push 0x80004003
call fcn.00429da0
push 0x8007000e
call fcn.00429da0
int3