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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008607e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100c6034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
push 0x20019
push 0
push dword [edx]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1004154b
call fcn.10029330
test eax, eax
je 0x10041791
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 - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.Location
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.10029330
test eax, eax
je 0x10041791
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 0x10041616
mov edx, dword [ebp - 0x18]
test edx, edx
js 0x1004179b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x100415c1
push edx
lea ecx, [ebp - 0x10]
call fcn.1002b370
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x100415d5
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.1002b290
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x24]
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.100617b7
add esp, 8
test eax, eax
js 0x1004179b
cmp eax, dword [esi - 8]
jg 0x1004179b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test ebx, ebx
je 0x10041643
call fcn.10029330
test eax, eax
je 0x10041791
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 0x1004175a
cmp dword [esi - 0xc], 0
jne 0x10041672
call fcn.10029330
test eax, eax
je 0x10041791
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 0x1004175a
push 0xe
push str.BINSTSADM.EXE
lea ecx, [ebp - 0x10]
call fcn.1002ae70
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1004173a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.1002c320
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x10]
push 1
push 0x100a7a54
call fcn.1002b490
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.1002ae70
push 1
push 0x100a7a54
lea ecx, [ebp - 0x10]
call fcn.1002ae70
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100416f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.1002c320
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10041537
mov ecx, dword [edx]
push edx
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
call fcn.10029330
test eax, eax
je 0x10041791
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 0x10041537
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.100269b0
push 0x80070057
call fcn.100269b0
int3