Function at 0x518a1b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a99d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
mov dword [ebp - 0xbc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
test eax, eax
jne 0x518a5c
xor eax, eax
jmp 0x518de6
mov ecx, dword [ebp - 0xbc]
call fcn.005151b0
mov dword [ebp - 0x7c], eax
push 1
mov eax, dword [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00599c41
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xbc]
add ecx, 8
mov dword [ebp - 0x80], ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x80]
call fcn.00599c53
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00599d7f
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x84], ecx
cmp dword [ebp - 0x84], 0
jne 0x518ac5
xor eax, eax
jmp 0x518de6
mov edx, dword [ebp + 0xc]
and edx, 0xff
test edx, edx
jne 0x518ba9
mov word [ebp - 0x2c], 0x11
mov byte [ebp - 0x24], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x88], edx
push 0x60ac98
push 0x60ac98
push 0x60ac98
push 0x60ac98
push 0x60ac98
push 0x60ac98
mov eax, dword [ebp - 0xc0]
push eax
push 0x60ac98
push 0x60ac98
push 0x60ac98
push 0x60ac98
push 0x60ac98
mov ecx, dword [ebp - 0x88]
push ecx
mov ecx, dword [ebp - 0xbc]
add ecx, 8
call fcn.00511d95
mov dword [ebp - 0x8c], eax
push 1
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00599c41
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xbc]
add eax, 0x10
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x90]
call fcn.00599c53
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00599d7f
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.oleaut32.dll_VariantCopy]
jmp 0x518c9e
mov word [ebp - 0x44], 0x11
mov byte [ebp - 0x3c], 1
lea eax, [ebp - 0x44]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 3
mov word [ebp - 0x54], 0x11
mov byte [ebp - 0x4c], 1
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x94], eax
push 0x60ac98
push 0x60ac98
push 0x60ac98
push 0x60ac98
push 0x60ac98
push 0x60ac98
mov ecx, dword [ebp - 0xc4]
push ecx
push 0x60ac98
push 0x60ac98
push 0x60ac98
mov edx, dword [ebp - 0xc8]
push edx
push 0x60ac98
mov eax, dword [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 8
call fcn.00511d95
mov dword [ebp - 0x98], eax
push 1
mov ecx, dword [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00599c41
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0xbc]
add edx, 0x10
mov dword [ebp - 0x9c], edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x9c]
call fcn.00599c53
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00599d7f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.oleaut32.dll_VariantCopy]
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.oleaut32.dll_VariantCopy]
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0xa0], ecx
cmp dword [ebp - 0xa0], 0
jne 0x518cbd
xor eax, eax
jmp 0x518de6
mov ecx, dword [ebp - 0xbc]
add ecx, 0x10
call fcn.005117f6
mov dword [ebp - 0xa4], eax
push 1
mov edx, dword [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x5c]
call fcn.00599c41
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0xbc]
add eax, 0x18
mov dword [ebp - 0xa8], eax
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0xa8]
call fcn.00599c53
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00599d7f
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x518d35
xor eax, eax
jmp 0x518de6
push 2
push 1
lea ecx, [ebp - 0x74]
call fcn.00521573
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0xd0]
push edx
mov ecx, dword [ebp - 0xbc]
add ecx, 0x18
call fcn.0051815e
mov dword [ebp - 0xb0], eax
push 1
mov eax, dword [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x64]
call fcn.00599c41
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xbc]
add ecx, 0x20
mov dword [ebp - 0xb4], ecx
lea edx, [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0xb4]
call fcn.00599c53
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x64]
call fcn.00599d7f
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.oleaut32.dll_VariantCopy]
mov ecx, dword [ebp - 0xbc]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0xb8], edx
cmp dword [ebp - 0xb8], 0
jne 0x518de1
xor eax, eax
jmp 0x518de6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8