Function at 0x100389d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10151ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101a154c]
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.10012f50
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov dword [ebp - 4], 0
call fcn.10012f50
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 1
mov esi, esp
call fcn.100372e0
push eax
mov ecx, esi
call fcn.10012f50
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.10072830
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 0x10038a7b
push eax
call edi
test eax, eax
jne 0x10038af3
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10012f50
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 3
call fcn.10012f50
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 4
mov esi, esp
call fcn.100375b0
push eax
mov ecx, esi
call fcn.10012f50
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.10072830
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.100190c0
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 0x10038af3
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 0x10038b03
push eax
call edi
test eax, eax
jne 0x10038b7b
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10012f50
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 6
call fcn.10012f50
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 7
mov esi, esp
call fcn.10037790
push eax
mov ecx, esi
call fcn.10012f50
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.10072830
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.100190c0
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 0x10038b7b
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 0x10038b8b
push eax
call edi
test eax, eax
jne 0x10038c03
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.REG_SZ
call fcn.10012f50
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.InstallLocation
mov byte [ebp - 4], 9
call fcn.10012f50
push ecx
lea ecx, [ebp - 0x15]
mov byte [ebp - 4], 0xa
mov esi, esp
call fcn.10036980
push eax
mov ecx, esi
call fcn.10012f50
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
call fcn.10072830
add esp, 0x14
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.100190c0
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 0x10038c03
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 0x10038c2c
push eax
call edi
test eax, eax
je 0x10038c29
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
push eax
call fcn.100190c0
mov eax, dword [ebp - 0x14]
mov esi, 1
jmp 0x10038c2e
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 0x10038c4a
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.100f8fe1
mov esp, ebp
pop ebp
ret