Function at 0x4019c4
Capabilities:
Check if file exists

Disassembly:
jmp 0x4076fd
mov eax, 0x4604c0
call fcn.0043b314
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 0x407851
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
je 0x407739
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esi + 8]
call fcn.004022e3
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 0x40775d
push 0x80004003
call fcn.0042f592
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
cmp dword [ebx], edi
jne 0x407775
push 0x80004003
call fcn.0042f592
mov eax, dword [ebx]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebp + 0xc], edi
je 0x4077b6
push str.version1.0_encodingutf_8
lea ecx, [ebp + 8]
call fcn.004014c9
lea eax, [ebp + 8]
mov ecx, esi
push eax
mov dword [ebp - 4], edi
call fcn.00401910
mov ecx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp ecx, edi
je 0x407841
call fcn.00402441
jmp 0x407841
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov eax, dword [esi]
cmp eax, edi
je 0x4077c6
mov eax, dword [eax]
jmp 0x4077c8
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407862
push esi
lea ecx, [ebp - 0x38]
call fcn.00401c49
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 0x4077ff
push 0x80004003
call fcn.0042f592
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 0x407832
push eax
call fcn.0042f592
xor edi, edi
cmp word [ebp - 0x18], di
jne 0x407841
mov dword [ebp + 0xc], 0x80004005
cmp dword [ebp + 0xc], edi
jge 0x40784e
push edi
mov ecx, ebx
call fcn.00401e33
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.004015e1
mov esi, eax
cmp esi, edi
je 0x407834
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, edi
je 0x407881
mov eax, dword [eax]
jmp 0x407883
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 0x407834
push eax
call fcn.0043bffa
cmp eax, edi
pop ecx
mov dword [ebp - 0x10], eax
je 0x407834
push dword [ebp - 0x14]
push edi
push eax
call fcn.0043b370
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
cmp eax, edi
je 0x4078ba
mov eax, dword [eax]
jmp 0x4078bc
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.0043b370
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.0043b370
mov eax, dword [0x471188]
add esp, 0xc
inc dword [0x471188]
lea ecx, [ebp - 0x240]
push ecx
push eax
lea eax, [ebp - 0x448]
push 0x47117c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x240]
push 0x471174
push eax
call fcn.0043c4c0
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x4079ec
push esi
push 1
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0043c356
push esi
call fcn.0043c2d9
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 0x40798a
lea eax, [ebp - 0x240]
test eax, eax
je 0x40798a
push 0x8007000e
call fcn.0042f592
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 0x4079aa
push 0x80004003
call fcn.0042f592
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 0x4079dd
push eax
call fcn.0042f592
lea eax, [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push dword [ebp - 0x10]
call fcn.0043bd85
pop ecx
jmp 0x407834