Function at 0x1003c520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10180e50
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101dd594]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.REG_SZ
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
call fcn.10016670
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov dword [ebp - 4], 0
call fcn.10016670
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 1
mov esi, esp
call fcn.1003ae30
push eax
mov ecx, esi
call fcn.10016670
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.1009f950
add esp, 0x14
mov eax, dword [ebp - 0x14]
or ebx, 0xffffffff
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], 2
cmp dword [eax - 0xc], 0
je 0x1003c5cb
push eax
call edi
test eax, eax
jne 0x1003c643
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10016670
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 3
call fcn.10016670
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 4
mov esi, esp
call fcn.1003b100
push eax
mov ecx, esi
call fcn.10016670
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.1009f950
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.1001c9f0
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c643
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x1003c653
push eax
call edi
test eax, eax
jne 0x1003c6cb
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10016670
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 6
call fcn.10016670
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 7
mov esi, esp
call fcn.1003b2e0
push eax
mov ecx, esi
call fcn.10016670
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.1009f950
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.1001c9f0
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c6cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x1003c6db
push eax
call edi
test eax, eax
jne 0x1003c753
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10016670
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 9
call fcn.10016670
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 0xa
mov esi, esp
call fcn.1003a4d0
push eax
mov ecx, esi
call fcn.10016670
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.1009f950
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.1001c9f0
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003c753
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x1003c77c
push eax
call edi
test eax, eax
je 0x1003c779
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.1001c9f0
mov eax, dword [ebp - 0x14]
mov esi, 1
jmp 0x1003c77e
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1003c79a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10128191
mov esp, ebp
pop ebp
ret