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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4235e5
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebp, [edi + 4]
call fcn.00402960
mov esi, eax
test esi, esi
jne 0x4060e9
mov eax, 0x80004005
jmp 0x4062dc
mov eax, dword [ebp]
test eax, eax
je 0x4060f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp], 0
mov edx, dword [esi]
push ebp
push esi
call dword [edx + 0x78]
test eax, eax
jl 0x4062dc
mov ebx, dword [esp + 0x254]
lea esi, [edi + 8]
mov eax, dword [ebx]
test eax, eax
je 0x406126
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, esi
call fcn.00405750
mov eax, dword [ebx]
mov dword [esi], eax
mov esi, dword [esp + 0x258]
mov dword [edi + 0x10], esi
mov eax, dword [ebp]
test eax, eax
jne 0x40614c
push 0x80004003
call fcn.00422bf0
mov eax, dword [ebp]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp dword [ebp], 0
jne 0x406167
push 0x80004003
call fcn.00422bf0
mov eax, dword [ebp]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
xor eax, eax
cmp esi, eax
je 0x4062f7
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x24c], 0
je 0x4061a7
push 0x42a648
mov ecx, eax
call fcn.004057e0
jmp 0x4061a9
xor eax, eax
test eax, eax
mov dword [esp + 0x24c], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x4061c6
push 0x8007000e
call fcn.00422bf0
push 0
mov ecx, ebp
mov dword [esp + 0x250], 1
call fcn.004079e0
test al, al
je 0x4061eb
mov dword [esp + 0x10], 0x80004005
jmp 0x4062a8
mov eax, dword [edi + 0xc]
lea esi, [edi + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x406208
mov eax, dword [eax]
cmp eax, ebx
je 0x406208
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
ja 0x406214
push str.version1.0_encodingutf_16
mov ecx, esi
call fcn.004065c0
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 2
call fcn.0040e830
mov eax, dword [esi]
mov dword [esp + 0x10], ebx
cmp eax, ebx
je 0x406237
mov edi, dword [eax]
jmp 0x406239
xor edi, edi
push 0x42a644
lea ecx, [esp + 0x18]
call fcn.004056b0
mov eax, dword [eax]
mov byte [esp + 0x24c], 3
cmp eax, ebx
je 0x406259
mov esi, dword [eax]
jmp 0x40625b
xor esi, esi
mov ecx, ebp
call fcn.004079c0
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push edi
push esi
push eax
call dword [ecx + 0x48]
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x24c], 2
call fcn.00405750
cmp esi, ebx
jl 0x40629b
mov ecx, ebp
call fcn.004079c0
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push ebx
push edx
push eax
call dword [ecx + 0xc]
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.0040e830
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24c], 0xffffffff
call fcn.00405750
mov eax, dword [esp + 0x10]
test eax, eax
jge 0x4062d8
mov eax, dword [ebp]
test eax, eax
je 0x4062d8
mov dword [ebp], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 8
mov ecx, dword [ebx]
mov dword [esp + 0x14], eax
cmp ecx, eax
je 0x406306
call fcn.00405820
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4063ca
mov ebx, dword [ebx]
mov word [esp + 0x1c], 8
test ebx, ebx
je 0x406326
mov esi, dword [ebx]
jmp 0x406328
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x40634d
push 0x8007000e
call fcn.00422bf0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov eax, dword [ebp]
test eax, eax
mov dword [esp + 0x24c], 4
jne 0x40637b
push 0x80004003
call fcn.00422bf0
lea edx, [esp + 0x14]
mov eax, dword [ebp]
push edx
sub esp, 0x10
mov ecx, dword [eax]
mov edx, esp
push eax
mov dword [edx], esi
mov esi, dword [esp + 0x50]
mov dword [edx + 4], ebx
mov dword [edx + 8], edi
mov dword [edx + 0xc], esi
call dword [ecx + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x250], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x4065a2
push eax
call fcn.00422bf0
jmp 0x4065a2
mov dword [esp + 0x10], 0x80004005
call fcn.00402960
test eax, eax
je 0x4065a2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov esi, eax
test esi, esi
je 0x4065a2
mov ebx, dword [ebx]
test ebx, ebx
je 0x4063f9
mov eax, dword [ebx]
jmp 0x4063fb
xor eax, eax
mov edx, dword [esi]
push eax
push 0
push esi
call dword [edx + 0x10]
mov ebx, eax
test ebx, ebx
jle 0x4065a2
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
je 0x4065a2
mov ecx, ebx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x254]
mov eax, dword [eax]
test eax, eax
je 0x406449
mov eax, dword [eax]
jmp 0x40644b
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esi]
push ebx
push edx
push eax
push 0
push esi
call dword [ecx + 0x14]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x140]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x140]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [0x42a640]
push edx
mov ecx, eax
inc eax
mov dword [0x42a640], eax
push ecx
lea eax, [esp + 0x148]
push 0x42a63c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 0x3c]
push 0x42a638
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x406594
mov edx, dword [esp + 0x18]
push esi
push 1
push ebx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea eax, [esp + 0x3c]
mov word [esp + 0x2c], 8
push eax
call fcn.00422c3c
test eax, eax
mov dword [esp + 0x34], eax
jne 0x406515
lea ecx, [esp + 0x3c]
test ecx, ecx
je 0x406515
push 0x8007000e
call fcn.00422bf0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov ebx, eax
mov eax, dword [ebp]
mov dword [esp + 0x24c], 5
test eax, eax
mov dword [esp + 0x28], edx
jne 0x406543
push 0x80004003
call fcn.00422bf0
lea edx, [esp + 0x14]
mov eax, dword [ebp]
push edx
sub esp, 0x10
mov ecx, dword [eax]
mov edx, esp
push eax
mov dword [edx], esi
mov esi, dword [esp + 0x40]
mov dword [edx + 4], edi
mov dword [edx + 8], ebx
mov dword [edx + 0xc], esi
call dword [ecx + 0x30]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x250], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x406589
push eax
call fcn.00422bf0
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp word [esp + 0x14], 0
jne 0x4062bc
mov dword [esp + 0x10], 0x80004005
jmp 0x4062c4