Function at 0x10015544
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x10080f6c]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x48
mov eax, 0x10057101
call fcn.10039bd1
lea eax, [ebp - 0x1c]
push eax
mov edi, ecx
call fcn.1002c314
pop ecx
lea ecx, [edi + 0x18]
push eax
call fcn.1000147f
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
cmp ecx, ebx
je 0x1001558b
call fcn.10001441
lea eax, [ebp - 0x1c]
push eax
call fcn.1002c5a2
pop ecx
lea ecx, [edi + 0x1c]
push eax
call fcn.1000147f
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x100155aa
call fcn.10001441
lea eax, [ebp - 0x30]
push eax
push 0x20019
push ebx
push 0x1005e770
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100157bc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0x20], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x208]
push eax
mov dword [ebp - 4], ebx
push ebx
jmp 0x10015792
xor ecx, ecx
xor eax, eax
cmp dword [ebp - 0x10], ebx
jbe 0x10015776
cmp word [ebp + eax*2 + 0x208], 0x2e
jne 0x1001560f
inc ecx
cmp ecx, 1
jg 0x1001561e
inc eax
cmp eax, dword [ebp - 0x10]
jb 0x100155fe
cmp ecx, 1
jle 0x10015776
lea eax, [ebp + 0x208]
push 0x1005e764
push eax
call fcn.10052b6b
pop ecx
pop ecx
test eax, eax
js 0x10015776
lea eax, [ebp + 0x208]
push eax
call fcn.10036485
pop ecx
test al, al
je 0x10015776
push ecx
lea eax, [ebp + 0x208]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.10001309
lea eax, [ebp - 0x24]
push eax
call fcn.100376d1
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.1000147f
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x10015683
call fcn.10001441
mov dword [ebp - 0x24], ebx
push ecx
lea eax, [ebp + 0x208]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.10001309
lea eax, [ebp - 0x14]
push eax
call fcn.100373b4
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.1001600a
cmp eax, ebx
jl 0x10015764
mov eax, dword [edi + 0x1c]
mov esi, dword [sym.imp.kernel32.dll_InterlockedIncrement]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x100156cc
add eax, 8
push eax
call esi
mov eax, dword [edi + 0x18]
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x100156e1
add eax, 8
push eax
call esi
push ecx
mov ecx, dword [ebp - 0x14]
mov eax, esp
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], esp
cmp eax, ebx
je 0x100156f9
add eax, 8
push eax
call esi
push ecx
mov ecx, dword [ebp - 0x20]
mov eax, esp
mov dword [ebp - 0x38], esp
mov dword [eax], ecx
cmp ecx, ebx
je 0x1001570e
add ecx, 8
push ecx
call esi
push ecx
lea eax, [ebp + 0x208]
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
mov byte [ebp - 4], 5
call fcn.10001309
mov esi, dword [ebp - 0x1c]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10052b6b
lea ecx, [ebp - 0x28]
push ecx
push 0x1006da2c
mov dword [ebp - 0x28], ebx
mov eax, dword [esi]
push esi
call dword [eax]
push 9
pop eax
mov word [ebp - 0x54], ax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x54]
push ecx
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 8]
call fcn.10052b6b
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp ecx, ebx
je 0x10015776
call fcn.10001441
mov dword [ebp - 0x14], ebx
inc dword [ebp - 0x18]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x104
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
je 0x100155f1
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x100157bc
call fcn.10001441
push 0x104
lea eax, [ebp]
push eax
push dword [0x1008360c]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
cmp eax, ebx
je 0x100159f8
mov dword [ebp - 0x24], ebx
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 6
call fcn.10001309
mov eax, dword [eax]
cmp eax, ebx
je 0x100157f9
mov eax, dword [eax]
jmp 0x100157fb
xor eax, eax
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov ecx, dword [ebp - 0x1c]
mov esi, eax
cmp ecx, ebx
je 0x10015814
call fcn.10001441
cmp esi, ebx
jl 0x100159e7
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push 0x1006beb4
push eax
mov byte [ebp - 4], 7
call dword [ecx + 0x18]
cmp eax, ebx
jl 0x100159d6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x10015850
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x1005a7ac
push eax
mov byte [ebp - 4], 9
call dword [ecx]
test eax, eax
js 0x10015875
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.100016e7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x100159b4
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax + 0x2c]
mov dword [0x1007d468], eax
cmp eax, ebx
jne 0x100158a2
mov dword [0x1007d464], ebx
jmp 0x100158fb
mov edi, eax
xor ecx, ecx
push 0xc
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.10052b6b
pop ecx
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0xa
cmp eax, ebx
je 0x100158ea
push 0x10001618
push 0x10001621
push edi
lea esi, [eax + 4]
push 0xc
push esi
mov dword [eax], edi
call fcn.10039ed7
jmp 0x100158ec
xor esi, esi
mov eax, dword [0x1007d468]
mov byte [ebp - 4], 9
mov dword [0x1007d464], esi
xor edi, edi
cmp eax, ebx
jle 0x1001599d
xor esi, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push edi
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jl 0x1001598d
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push ebx
push ebx
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x20]
push dword [edx]
mov byte [ebp - 4], 0xb
push eax
call dword [ecx + 0x30]
cmp eax, ebx
jl 0x10015974
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [0x1007d464]
lea ecx, [esi + eax]
mov dword [ebp - 0x14], ebx
call fcn.100015fc
mov eax, dword [0x1007d464]
push dword [esi + eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [0x1007d464]
mov dword [esi + ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [0x1007d464]
mov dword [esi + ecx + 8], eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp - 0x14]
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc edi
add esi, 0xc
cmp edi, dword [0x1007d468]
jl 0x10015907
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [0x1007d45c], eax
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x100159c5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x100159d6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x100159e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x100159f8
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.10039bc2
add ebp, 0x414
leave
ret