Function at 0x1000ec60
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002904e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x1003b014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push dword [edx]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000eceb
call fcn.100082f0
test eax, eax
je 0x1000ef12
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push str.Location
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.100082f0
test eax, eax
je 0x1000ef12
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
cmp ebx, 0xea
jne 0x1000edb6
mov edx, dword [ebp - 0x18]
test edx, edx
js 0x1000ef1c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x1000ed61
push edx
lea ecx, [ebp - 0x10]
call fcn.10007ce0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x1000ed75
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.10007b30
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push 0
push str.Location
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi - 8]
mov ebx, eax
push esi
call fcn.10015e90
add esp, 8
test eax, eax
js 0x1000ef1c
cmp eax, dword [esi - 8]
jg 0x1000ef1c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
je 0x1000ede3
call fcn.100082f0
test eax, eax
je 0x1000ef12
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 1
jmp 0x1000eedb
cmp dword [esi - 0xc], 0
jne 0x1000ee12
call fcn.100082f0
test eax, eax
je 0x1000ef12
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 1
jmp 0x1000eedb
push 0xe
push str.BINSTSADM.EXE
lea ecx, [ebp - 0x10]
call fcn.10007d60
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000eebb
lea ecx, [esi - 0x10]
call fcn.10007ad0
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x10]
push 1
push 0x10034dec
call fcn.10007bb0
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.10007d60
push 1
push 0x10034dec
lea ecx, [ebp - 0x10]
call fcn.10007d60
mov byte [ebp - 4], 3
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000ee8d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov ecx, esi
call fcn.10007ad0
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jmp 0x1000eef0
call fcn.100082f0
test eax, eax
je 0x1000ef12
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000ecd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100084e0
push 0x80070057
call fcn.100084e0
int3