Function at 0x10016411
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x10065c24
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x100bc054]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x28]
push eax
call fcn.1002cbf5
pop ecx
lea ecx, [ebx + 0x14]
push eax
mov dword [ebp - 0x3c], ecx
call fcn.100015bc
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10016471
call fcn.100016f0
lea eax, [ebp - 0x28]
push eax
call fcn.1002cea1
pop ecx
lea ecx, [ebx + 0x18]
push eax
mov dword [ebp - 0x2c], ecx
call fcn.100015bc
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10016493
call fcn.100016f0
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push 0x100761c8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 9
pop ebx
test eax, eax
jne 0x100166b0
mov ebx, eax
mov dword [ebp - 0x10], 0x104
mov edi, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], edi
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
push ecx
lea ecx, [ebp + 0x208]
push ecx
push eax
jmp 0x10016684
xor eax, eax
mov ecx, eax
mov edx, eax
cmp dword [ebp - 0x10], eax
jbe 0x10016669
cmp word [ebp + edx*2 + 0x208], 0x2e
jne 0x10016502
inc ecx
cmp ecx, 1
jg 0x10016511
inc edx
cmp edx, dword [ebp - 0x10]
jb 0x100164f1
cmp ecx, 1
jle 0x10016669
lea eax, [ebp + 0x208]
push 0x10076220
push eax
call fcn.10044cef
pop ecx
pop ecx
test eax, eax
js 0x10016667
lea eax, [ebp + 0x208]
push eax
call fcn.100379a5
pop ecx
test al, al
je 0x10016667
push ecx
lea eax, [ebp + 0x208]
mov ecx, esp
push eax
call fcn.1000155e
lea eax, [ebp - 0x24]
push eax
call fcn.10037475
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.100015bc
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10016577
call fcn.100016f0
xor esi, esi
mov dword [ebp - 0x24], esi
jmp 0x10016579
xor esi, esi
push ecx
lea eax, [ebp + 0x208]
mov ecx, esp
push eax
call fcn.1000155e
lea eax, [ebp - 0x14]
push eax
call fcn.10037e7b
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
call fcn.10016e4d
mov edi, dword [ebp - 0x20]
test eax, eax
js 0x1001664f
push ecx
mov ecx, dword [ebp - 0x2c]
mov eax, esp
mov dword [ebp - 0x38], esp
mov ecx, dword [ecx]
mov dword [eax], ecx
test ecx, ecx
je 0x100165bc
lock inc dword [ecx + 8]
push ecx
mov ecx, dword [ebp - 0x3c]
mov eax, esp
mov dword [ebp - 0x48], esp
mov ecx, dword [ecx]
mov dword [eax], ecx
test ecx, ecx
je 0x100165d1
lock inc dword [ecx + 8]
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100165e7
lock inc dword [eax + 8]
push ecx
mov dword [ebp - 0x50], esp
mov eax, esp
mov dword [eax], edi
test edi, edi
je 0x100165f7
lock inc dword [edi + 8]
push ecx
lea eax, [ebp + 0x208]
mov byte [ebp - 4], 5
mov ecx, esp
push eax
call fcn.1000155e
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10016209
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push ecx
push 0x100a0e7c
push ebx
call dword [eax]
mov ecx, dword [ebp - 0x34]
push 9
pop eax
mov word [ebp - 0x60], ax
add ecx, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push dword [ecx + 4]
lea eax, [ebp - 0x44]
push eax
call fcn.10044cef
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov byte [ebp - 4], al
test ecx, ecx
je 0x10016669
call fcn.100016f0
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x10016669
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
lea eax, [ebp + 0x208]
inc ebx
push eax
mov dword [ebp - 0x18], ebx
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100164e2
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100166ad
mov ecx, edi
call fcn.100016f0
push 9
pop ebx
push 0x104
lea eax, [ebp]
push eax
push dword [0x100bf194]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x10016904
xor esi, esi
mov dword [ebp - 0x24], esi
lea eax, [ebp]
mov dword [ebp - 4], 6
push eax
lea ecx, [ebp - 0x34]
call fcn.1000155e
mov eax, dword [eax]
test eax, eax
je 0x100166ef
mov eax, dword [eax]
jmp 0x100166f1
mov eax, esi
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov ecx, dword [ebp - 0x34]
mov edi, eax
test ecx, ecx
je 0x1001670a
call fcn.100016f0
test edi, edi
js 0x100168f3
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
push 0x10099468
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 7
call dword [ecx + 0x18]
test eax, eax
js 0x100168e2
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10016746
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x1006aea8
push eax
mov byte [ebp - 4], bl
call dword [ecx]
test eax, eax
js 0x1001676a
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001b93
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x100168bd
mov eax, dword [ebp - 0x2c]
push 0xc
pop ebx
movzx esi, word [eax + 0x2c]
mov dword [0x100ba050], esi
test esi, esi
jne 0x1001679c
xor eax, eax
mov dword [0x100ba04c], eax
jmp 0x100167f9
xor ecx, ecx
mov dword [ebp - 0x44], esi
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.10044cef
pop ecx
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x100167e5
push 0x10001c8d
push 0x10001c3f
push esi
lea edi, [eax + 4]
mov dword [eax], esi
push ebx
push edi
call fcn.1003a6ad
xor eax, eax
jmp 0x100167e9
xor eax, eax
mov edi, eax
mov esi, dword [0x100ba050]
mov byte [ebp - 4], 9
mov dword [0x100ba04c], edi
mov edi, eax
test esi, esi
jle 0x100168a1
mov ebx, eax
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push edx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x10016891
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
push ecx
push ecx
push ecx
mov edx, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push dword [ecx]
push eax
call dword [edx + 0x30]
test eax, eax
js 0x10016876
mov ecx, dword [0x100ba04c]
xor esi, esi
mov eax, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x14], esi
lea ecx, [ebx + ecx]
call fcn.10001dec
mov eax, dword [0x100ba04c]
push dword [ebx + eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [0x100ba04c]
mov dword [ebx + ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov eax, dword [0x100ba04c]
mov dword [ebx + eax + 8], ecx
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push 9
pop eax
push dword [ebp - 0x14]
mov byte [ebp - 4], al
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc edi
add ebx, 0xc
cmp edi, dword [0x100ba050]
jl 0x10016805
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [0x100ba044], ecx
jmp 0x100168c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x100168d4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 7
test eax, eax
je 0x100168e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 6
test eax, eax
je 0x100168f3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10016904
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1003a5a7
add ebp, 0x414
leave
ret