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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100335c5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10047074]
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, 0x1004ae68
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001e963
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x1004ae64], eax
test eax, eax
je 0x1001e963
lea eax, [ebp - 0x74]
push eax
push 0x2021f
push 0
push dword [0x10047054]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001e963
mov ecx, edi
mov edx, 0x1004ae54
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001e49f
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x64]
push eax
push 0x1a
call fcn.1001d0e0
mov eax, dword [ebp - 0x64]
add esp, 8
test eax, eax
je 0x1001e487
push 0x1004ae58
push 0x1001eac0
push 5
push eax
push 0xa
call fcn.1001e980
push 0x1004ae5c
push 0x1001f5a0
push 0xa
push dword [ebp - 0x64]
push 0xb
call fcn.1001e980
add esp, 0x28
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x68]
push edx
push 0x100377e4
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 1
call dword [ecx]
test eax, eax
js 0x1001e473
push 0x1004ae60
push 0x1001ec40
push 3
push dword [ebp - 0x68]
push 0xc
call fcn.1001e980
add esp, 0x14
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 2
test eax, eax
je 0x1001e484
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 4], 3
test eax, eax
je 0x1001e498
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, 0x1004ae20
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001e60f
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], 0x1001ee10
mov dword [ebp - 0x54], 0x1004ae24
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 9
mov dword [ebp - 0x48], 0x1001f140
mov dword [ebp - 0x44], 0x1004ae28
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x3c], 0xa
mov dword [ebp - 0x38], 0x1001efa0
mov dword [ebp - 0x34], 0x1004ae2c
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x2c], 0x11
mov dword [ebp - 0x28], 0x1001f2e0
mov dword [ebp - 0x24], 0x1004ae30
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 0x12
mov dword [ebp - 0x18], 0x1001f6e0
mov dword [ebp - 0x14], 0x1004ae34
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x1001e60f
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 0x1001e606
mov edx, dword [ebp - 0x68]
xor ecx, ecx
mov dword [ebp - 4], 4
mov dword [ebp - 0x64], ecx
test edx, edx
je 0x1001e5ae
mov eax, dword [edx]
lea ecx, [ebp - 0x64]
push ecx
push 0x100376dc
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 0x1001e5e5
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.1001e980
add esp, 0x14
lea esi, [esi + 0x10]
sub ebx, 1
je 0x1001e5e2
mov ecx, dword [ebp - 0x64]
jmp 0x1001e5c1
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 0x1001e5ff
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, 0x1004ae38
xor eax, eax
lock cmpxchg dword [edx], ecx
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x1001e679
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], 0
push eax
push 0x10037804
push 3
push 0
push 0x10037be8
call esi
test eax, eax
js 0x1001e65e
push 0x1004ae3c
push 0x1001f310
push 3
push dword [ebp - 0x6c]
push 6
call fcn.1001e980
add esp, 0x14
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 4], 7
test eax, eax
je 0x1001e672
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, 0x1004ae48
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001e6dd
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 0x10034e5c
push 0
push 1
push 0x10037780
call dword [sym.imp.ole32.dll_CoGetClassObject]
test eax, eax
js 0x1001e6c2
push 0x1004ae4c
push 0x1001f740
push 3
push dword [ebp - 0x6c]
push 8
call fcn.1001e980
add esp, 0x14
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 4], 8
test eax, eax
je 0x1001e6d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, 0x1004ae18
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001e77f
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 4], 9
push eax
push 0x1a
call fcn.1001d0e0
mov eax, dword [ebp - 0x64]
add esp, 8
test eax, eax
je 0x1001e767
lea edx, [ebp - 0x68]
mov dword [ebp - 0x68], 0
mov ecx, dword [eax]
push edx
push 0x100377f4
push eax
mov byte [ebp - 4], 0xa
call dword [ecx]
test eax, eax
jns 0x1001e735
xor eax, eax
mov dword [ebp - 0x68], eax
jmp 0x1001e756
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x1001e756
push 0x1004ae1c
push 0x1001f370
push 3
push eax
push 0
call fcn.1001e980
mov eax, dword [ebp - 0x68]
add esp, 0x14
mov byte [ebp - 4], 0xb
test eax, eax
je 0x1001e764
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 4], 0xc
test eax, eax
je 0x1001e778
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x1004ae40
xor eax, eax
lock cmpxchg dword [ecx], edi
test eax, eax
jne 0x1001e812
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0xd
push eax
push 0x10037814
push 1
push 0
push 0x10037bc8
call esi
test eax, eax
js 0x1001e7fe
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x6c]
push edx
push 0x10037824
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0xe
call dword [ecx]
test eax, eax
js 0x1001e7ed
push 0x1004ae44
push 0x1001f710
push 5
push dword [ebp - 0x6c]
push 7
call fcn.1001e980
add esp, 0x14
mov eax, dword [ebp - 0x6c]
mov byte [ebp - 4], 0xf
test eax, eax
je 0x1001e7fe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x68]
mov dword [ebp - 4], 0x10
test eax, eax
je 0x1001e812
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 [0x1004ae50]
mov eax, dword [0x1004ae44]
neg ecx
push 4
sbb ecx, ecx
and ecx, 0x40
neg eax
sbb eax, eax
and eax, 0x10
or ecx, eax
mov eax, dword [0x1004ae60]
neg eax
sbb eax, eax
and eax, 0x200
or ecx, eax
mov eax, dword [0x1004ae4c]
neg eax
sbb eax, eax
and eax, 0x20
or ecx, eax
mov eax, dword [0x1004ae5c]
neg eax
sbb eax, eax
and eax, 0x100
or ecx, eax
mov eax, dword [0x1004ae3c]
neg eax
sbb eax, eax
and eax, 8
or ecx, eax
mov eax, dword [0x1004ae34]
neg eax
sbb eax, eax
and eax, 4
or ecx, eax
mov eax, dword [0x1004ae30]
neg eax
sbb eax, eax
and eax, 2
or ecx, eax
mov eax, dword [0x1004ae58]
neg eax
sbb eax, eax
and eax, 0x80
or ecx, eax
xor eax, eax
cmp dword [0x1004ae2c], eax
setne al
or ecx, eax
xor eax, eax
shl ecx, 3
cmp dword [0x1004ae1c], eax
setne al
or ecx, eax
mov eax, dword [0x1004ae28]
neg eax
sbb eax, eax
and eax, 4
or ecx, eax
mov eax, dword [0x1004ae24]
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 [0x10047058]
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 [0x1004ae10]
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 [0x1004ae14]
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.10020811
mov esp, ebp
pop ebp
ret