Function at 0x1001db00
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032ce5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10046074]
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 edi, 1
mov edx, 0x10049c40
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001e103
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10049c3c], eax
test eax, eax
je 0x1001e103
lea eax, [ebp - 0x74]
push eax
push 0x2021f
push 0
push dword [0x10046054]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001e103
mov ecx, edi
mov edx, 0x10049c2c
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001dc3f
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x64]
push eax
push 0x1a
call fcn.1001c870
mov eax, dword [ebp - 0x64]
add esp, 8
test eax, eax
je 0x1001dc27
push 0x10049c30
push 0x1001e260
push 5
push eax
push 0xa
call fcn.1001e120
push 0x10049c34
push 0x1001ed40
push 0xa
push dword [ebp - 0x64]
push 0xb
call fcn.1001e120
add esp, 0x28
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x68]
push edx
push 0x10037664
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call dword [ecx]
test eax, eax
js 0x1001dc13
push 0x10049c38
push 0x1001e3e0
push 3
push dword [ebp - 0x68]
push 0xc
call fcn.1001e120
add esp, 0x14
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 2
test eax, eax
je 0x1001dc24
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 4], 3
test eax, eax
je 0x1001dc38
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, 0x10049bf8
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001ddaf
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0x1a
push 0
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x58], 0x1001e5b0
mov dword [ebp - 0x54], 0x10049bfc
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 9
mov dword [ebp - 0x48], 0x1001e8e0
mov dword [ebp - 0x44], 0x10049c00
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x3c], 0xa
mov dword [ebp - 0x38], 0x1001e740
mov dword [ebp - 0x34], 0x10049c04
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 0x11
mov dword [ebp - 0x28], 0x1001ea80
mov dword [ebp - 0x24], 0x10049c08
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 0x12
mov dword [ebp - 0x18], 0x1001ee80
mov dword [ebp - 0x14], 0x10049c0c
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x1001ddaf
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push eax
push dword [ebp - 0x6c]
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
js 0x1001dda6
mov edx, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 4], 4
mov dword [ebp - 0x64], ecx
test edx, edx
je 0x1001dd4e
mov eax, dword [edx]
lea ecx, [ebp - 0x64]
push ecx
push 0x1003755c
push edx
call dword [eax]
mov ecx, dword [ebp - 0x64]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 5
test ecx, ecx
je 0x1001dd85
lea esi, [ebp - 0x58]
mov ebx, 5
push dword [esi + 4]
push dword [esi]
push dword [esi - 4]
push ecx
push dword [esi - 8]
call fcn.1001e120
add esp, 0x14
lea esi, [esi + 0x10]
sub ebx, 1
je 0x1001dd82
mov ecx, dword [ebp - 0x64]
jmp 0x1001dd61
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 4], 6
test eax, eax
je 0x1001dd9f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x6c]
call dword [sym.imp.SHELL32.dll_ILFree]
mov ecx, edi
mov edx, 0x10049c10
xor eax, eax
lock cmpxchg dword [edx], ecx
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x1001de19
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push 0x10037684
push 3
push 0
push 0x10037a68
call esi
test eax, eax
js 0x1001ddfe
push 0x10049c14
push 0x1001eab0
push 3
push dword [ebp - 0x6c]
push 6
call fcn.1001e120
add esp, 0x14
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 4], 7
test eax, eax
je 0x1001de12
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, 0x10049c20
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001de7d
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0x10034dfc
push 0
push 1
push 0x10037600
call dword [sym.imp.ole32.dll_CoGetClassObject]
test eax, eax
js 0x1001de62
push 0x10049c24
push 0x1001eee0
push 3
push dword [ebp - 0x6c]
push 8
call fcn.1001e120
add esp, 0x14
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 4], 8
test eax, eax
je 0x1001de76
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, 0x10049bf0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001df1f
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 9
push eax
push 0x1a
call fcn.1001c870
mov eax, dword [ebp - 0x64]
add esp, 8
test eax, eax
je 0x1001df07
lea edx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
mov ecx, dword [eax]
push edx
push 0x10037674
push eax
mov byte [ebp - 4], 0xa
call dword [ecx]
test eax, eax
jns 0x1001ded5
xor eax, eax
mov dword [ebp - 0x68], eax
jmp 0x1001def6
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x1001def6
push 0x10049bf4
push 0x1001eb10
push 3
push eax
push 0
call fcn.1001e120
mov eax, dword [ebp - 0x68]
add esp, 0x14
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1001df04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 4], 0xc
test eax, eax
je 0x1001df18
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x10049c18
xor eax, eax
lock cmpxchg dword [ecx], edi
test eax, eax
jne 0x1001dfb2
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0xd
push eax
push 0x10037694
push 1
push 0
push 0x10037a48
call esi
test eax, eax
js 0x1001df9e
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x6c]
push edx
push 0x100376a4
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
call dword [ecx]
test eax, eax
js 0x1001df8d
push 0x10049c1c
push 0x1001eeb0
push 5
push dword [ebp - 0x6c]
push 7
call fcn.1001e120
add esp, 0x14
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x1001df9e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 4], 0x10
test eax, eax
je 0x1001dfb2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 0x70]
push 4
push eax
push 4
push 0
push str.InfPatchComplete
push dword [ebp - 0x74]
mov dword [ebp - 0x70], 1
call esi
mov ecx, dword [0x10049c28]
mov eax, dword [0x10049c1c]
neg ecx
push 4
sbb ecx, ecx
and ecx, 0x40
neg eax
sbb eax, eax
and eax, 0x10
or ecx, eax
mov eax, dword [0x10049c38]
neg eax
sbb eax, eax
and eax, 0x200
or ecx, eax
mov eax, dword [0x10049c24]
neg eax
sbb eax, eax
and eax, 0x20
or ecx, eax
mov eax, dword [0x10049c34]
neg eax
sbb eax, eax
and eax, 0x100
or ecx, eax
mov eax, dword [0x10049c14]
neg eax
sbb eax, eax
and eax, 8
or ecx, eax
mov eax, dword [0x10049c0c]
neg eax
sbb eax, eax
and eax, 4
or ecx, eax
mov eax, dword [0x10049c08]
neg eax
sbb eax, eax
and eax, 2
or ecx, eax
mov eax, dword [0x10049c30]
neg eax
sbb eax, eax
and eax, 0x80
or ecx, eax
xor eax, eax
cmp dword [0x10049c04], eax
setne al
or ecx, eax
xor eax, eax
shl ecx, 3
cmp dword [0x10049bf4], eax
setne al
or ecx, eax
mov eax, dword [0x10049c00]
neg eax
sbb eax, eax
and eax, 4
or ecx, eax
mov eax, dword [0x10049bfc]
neg eax
sbb eax, eax
and eax, 2
or ecx, eax
lea eax, [ebp - 0x70]
push eax
push 4
push 0
push str.InfPatchStatus
push dword [ebp - 0x74]
mov dword [ebp - 0x70], ecx
call esi
mov eax, dword [0x10046058]
push 4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 4
push 0
push str.InfPatchFirstErrorPatchId
push dword [ebp - 0x74]
call esi
mov eax, dword [0x10049be8]
push 4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 4
push 0
push str.InfPatchFirstErrorStep
push dword [ebp - 0x74]
call esi
mov eax, dword [0x10049bec]
push 4
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 4
push 0
push str.InfPatchFirstErrorResult
push dword [ebp - 0x74]
call esi
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.1001ffb1
mov esp, ebp
pop ebp
ret