Function at 0x1003b950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e61aa
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x1025e344]
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
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebp + 8]
lea ebx, [ecx + 1]
cmp dword [eax - 0xc], ecx
je 0x1003bd4e
push 0x208
push ecx
lea eax, [ebp - 0x218]
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1003bee3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x22c]
call fcn.10004060
test al, al
jne 0x1003ba28
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003ba06
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.10006ab0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jle 0x1003bc8c
push dword [ebp + 0x10]
add eax, 0xfffffff0
push ecx
mov esi, esp
mov dword [ebp - 0x224], esp
push eax
mov dword [ebp - 0x230], esi
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 3
call fcn.10008ac0
add esp, 8
mov byte [ebp - 4], 6
push dword [eax]
call fcn.100082c0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003baa4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x1003bab2
mov ebx, 1
jmp 0x1003bd2d
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x1003beed
cmp word [eax], 0x25
jne 0x1003bb31
push dword [0x1025e104]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.10007a90
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 8
push dword [ebp + 8]
mov dword [ebp - 0x228], 1
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.10007a90
mov dword [ebp - 4], 9
mov ecx, 3
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x228], ecx
push esi
push dword [eax]
call fcn.100082c0
add esp, 0x14
test eax, eax
jne 0x1003bb53
mov eax, dword [ebp + 0xc]
jmp 0x1003bb34
mov esi, dword [ebp + 0x10]
cmp dword [eax - 0xc], 0
jl 0x1003bb5c
push 0x10200778
push eax
call fcn.1019f712
add esp, 8
test eax, eax
je 0x1003bb5c
sub eax, dword [ebp + 0xc]
sar eax, 1
js 0x1003bb5c
mov byte [ebp - 0x219], 1
jmp 0x1003bb63
mov byte [ebp - 0x219], 0
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x228]
test al, 2
je 0x1003bb8e
and eax, 0xfffffffd
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x228], eax
call fcn.10003950
mov eax, dword [ebp - 0x228]
mov dword [ebp - 4], 3
test al, 1
je 0x1003bbad
and eax, 0xfffffffe
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x228], eax
call fcn.10003950
cmp byte [ebp - 0x219], 0
je 0x1003bbc0
mov ebx, 1
jmp 0x1003bd2d
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x220]
call fcn.10009620
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
jl 0x1003bc28
push str.setupapi.dll
push eax
call fcn.1019f712
add esp, 8
test eax, eax
je 0x1003bc28
sub eax, dword [ebp - 0x220]
sar eax, 1
js 0x1003bc28
mov ebx, 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.10003950
jmp 0x1003bd2d
push esi
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x230], esp
mov ecx, esp
push eax
call fcn.10003600
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 0xb
call fcn.10008ac0
add esp, 8
mov byte [ebp - 4], 0xd
push dword [eax]
call fcn.100082c0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x224]
call fcn.10003950
xor eax, eax
test esi, esi
cmove ebx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.10003950
jmp 0x1003bd2d
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x220]
call fcn.10009620
mov esi, dword [ebp - 0x220]
cmp dword [esi - 0xc], 0
jl 0x1003bdab
push str.msiexec.exe
push esi
call fcn.1019f712
add esp, 8
test eax, eax
je 0x1003bdab
sub eax, esi
sar eax, 1
js 0x1003bdab
cmp dword [esi - 0xc], 0
jl 0x1003bdab
push 0x10204a40
push esi
call fcn.1019f712
add esp, 8
test eax, eax
je 0x1003bdab
sub eax, esi
sar eax, 1
js 0x1003bdab
mov ebx, 1
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003bd2d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003bd4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003bd6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1003bd8b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.100d02f2
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jl 0x1003bd12
push 0x10204a44
push eax
call fcn.1019f712
add esp, 8
test eax, eax
je 0x1003bd12
sub eax, dword [ebp + 8]
sar eax, 1
js 0x1003bd12
mov edi, dword [esi - 0xc]
xor ecx, ecx
add eax, 2
cmovns ecx, eax
mov eax, SysReAllocString
sub eax, ecx
js 0x1003bed9
cmp ecx, edi
mov eax, edi
cmovle eax, ecx
mov dword [ebp - 0x224], eax
test eax, eax
jle 0x1003be54
sub edi, eax
cmp dword [esi - 4], 1
jle 0x1003be24
push dword [esi - 0xc]
lea ecx, [ebp - 0x220]
call fcn.100047b0
mov esi, dword [ebp - 0x220]
mov eax, dword [ebp - 0x224]
lea ecx, [edi*2 + 2]
push ecx
lea eax, [esi + eax*2]
push eax
push ecx
push esi
call fcn.1000ae70
add esp, 0x10
test edi, edi
js 0x1003beed
cmp edi, dword [esi - 8]
jg 0x1003beed
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
push dword [ebp + 0x10]
lea eax, [esi - 0x10]
push ecx
mov edi, esp
mov dword [ebp - 0x230], esp
push eax
mov dword [ebp - 0x234], edi
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x224]
push eax
mov byte [ebp - 4], 0xf
call fcn.10008ac0
add esp, 8
mov byte [ebp - 4], 0x12
push dword [eax]
call fcn.100082c0
add esp, 8
test eax, eax
sete byte [ebp - 0x219]
mov byte [ebp - 4], 0xf
or edi, 0xffffffff
mov edx, dword [ebp - 0x224]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003bec9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
cmp byte [ebp - 0x219], al
cmovne ebx, eax
jmp 0x1003bd12
push 0x80070216
call fcn.10004040
push 0x80004005
call fcn.10004040
push 0x80070057
call fcn.10004040
int3