Function at 0x40193d
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
jmp 0x407f70
mov eax, 0x464b2c
call fcn.0043da24
sub esp, 0x43c
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
push ebx
call fcn.00401041
xor edi, edi
pop ecx
cmp eax, edi
jl 0x4080c4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
je 0x407fac
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esi + 8]
call fcn.00402298
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 0x407fd0
push 0x80004003
call fcn.00431c9a
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp dword [ebx], edi
jne 0x407fe8
push 0x80004003
call fcn.00431c9a
mov eax, dword [ebx]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0xc], edi
je 0x408029
push str.version1.0_encodingutf_8
lea ecx, [ebp + 8]
call fcn.0040142e
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov dword [ebp - 4], edi
call fcn.00401889
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp ecx, edi
je 0x4080b4
call fcn.0040241e
jmp 0x4080b4
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov eax, dword [esi]
cmp eax, edi
je 0x408039
mov eax, dword [eax]
jmp 0x40803b
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4080d5
push esi
lea ecx, [ebp - 0x38]
call fcn.00401bdb
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 0x408072
push 0x80004003
call fcn.00431c9a
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 0x4080a5
push eax
call fcn.00431c9a
xor edi, edi
cmp word [ebp - 0x18], di
jne 0x4080b4
mov dword [ebp + 0xc], 0x80004005
cmp dword [ebp + 0xc], edi
jge 0x4080c1
push edi
mov ecx, ebx
call fcn.00401dca
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.00401546
mov esi, eax
cmp esi, edi
je 0x4080a7
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
je 0x4080f4
mov eax, dword [eax]
jmp 0x4080f6
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 0x4080a7
push eax
call fcn.0043e579
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
je 0x4080a7
push dword [ebp - 0x14]
push edi
push eax
call fcn.0043e8a0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
cmp eax, edi
je 0x40812d
mov eax, dword [eax]
jmp 0x40812f
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 fcn.0043e8a0
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 fcn.0043e8a0
mov eax, dword [0x476538]
add esp, 0xc
inc dword [0x476538]
lea ecx, [ebp - 0x240]
push ecx
push eax
lea eax, [ebp - 0x448]
push 0x47652c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x240]
push 0x476524
push eax
call fcn.0043ebda
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x40825f
push esi
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0043ea70
push esi
call fcn.0043e9f3
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 0x4081fd
lea eax, [ebp - 0x240]
test eax, eax
je 0x4081fd
push 0x8007000e
call fcn.00431c9a
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 0x40821d
push 0x80004003
call fcn.00431c9a
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 0x408250
push eax
call fcn.00431c9a
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push dword [ebp - 0x10]
call fcn.0043e405
pop ecx
jmp 0x4080a7