Function at 0x10038490
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10146c60
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1019646c]
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.10012770
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov dword [ebp - 4], 0
call fcn.10012770
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 1
mov esi, esp
call fcn.10036da0
push eax
mov ecx, esi
call fcn.10012770
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.10072930
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 0x1003853b
push eax
call edi
test eax, eax
jne 0x100385b3
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10012770
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 3
call fcn.10012770
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 4
mov esi, esp
call fcn.10037070
push eax
mov ecx, esi
call fcn.10012770
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.10072930
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10018af0
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 0x100385b3
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 0x100385c3
push eax
call edi
test eax, eax
jne 0x1003863b
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10012770
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 6
call fcn.10012770
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 7
mov esi, esp
call fcn.10037250
push eax
mov ecx, esi
call fcn.10012770
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.10072930
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.10018af0
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 0x1003863b
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 0x1003864b
push eax
call edi
test eax, eax
jne 0x100386c3
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10012770
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 9
call fcn.10012770
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 0xa
mov esi, esp
call fcn.10036440
push eax
mov ecx, esi
call fcn.10012770
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.10072930
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.10018af0
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 0x100386c3
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 0x100386ec
push eax
call edi
test eax, eax
je 0x100386e9
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.10018af0
mov eax, dword [ebp - 0x14]
mov esi, 1
jmp 0x100386ee
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 0x1003870a
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.100f5f8d
mov esp, ebp
pop ebp
ret