Function at 0x10046a78
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18c
mov eax, 0x1019f6c7
call fcn.10003f0f
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x10
pop edi
cmp dword [eax + 0x14], edi
jb 0x10046a97
mov eax, dword [eax]
xor ebx, ebx
mov dword [ebp - 0x2c], 0xf
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.100053e6
push 0x101c0588
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.100053e6
xor eax, eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.10014ba0
push 0x101c0584
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.10014ba0
add esp, 0x18
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], edi
jb 0x10046b07
mov esi, dword [esi]
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10014ba0
add esp, 0xc
lea ecx, [ebp - 0x70]
call fcn.10046f85
lea ecx, [ebp - 0x88]
call fcn.10046f85
mov eax, dword [ebp - 0x14]
cmp eax, edi
jb 0x10046b74
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x194], ecx
mov byte [ebp - 4], 8
cmp eax, 0x1000
jb 0x10046b6b
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x194]
push eax
call fcn.10014ba0
mov eax, dword [ebp - 0x190]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x194]
push eax
push ecx
call fcn.10014ba0
pop ecx
pop ecx
push 0xf
pop esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x28], bl
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp eax, edi
jb 0x10046bd4
mov ecx, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x190], ecx
mov byte [ebp - 4], 0xa
cmp eax, 0x1000
jb 0x10046bc7
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.10014ba0
mov eax, dword [ebp - 0x194]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x190]
push eax
push ecx
call fcn.10014ba0
pop ecx
pop ecx
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x40], bl
mov dword [ebp - 0x198], 1
call fcn.10014ba0
test eax, eax
je 0x10046d1c
mov dword [ebp - 0x190], ebx
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 0xb
push eax
push 0x101c03fc
push 4
push ebx
push 0x101c040c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x10046cfc
mov eax, dword [ebp - 0x190]
push ecx
mov ecx, esp
mov dword [ecx], eax
test eax, eax
je 0x10046c3f
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x101b03f8]
call esi
call fcn.100dbec2
mov edi, eax
pop ecx
test edi, edi
je 0x10046cfc
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x58]
push 3
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x188]
push ecx
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x18c], eax
call fcn.10014ba0
push dword [ebp - 0x18c]
mov byte [ebp - 4], 0xc
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x188]
cmp dword [ebp - 0x18c], eax
je 0x10046ca5
push dword [ebp - 0x18c]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x198]
push ecx
push ebx
push edi
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x80]
mov ecx, esi
call dword [0x101b03f8]
call esi
mov ecx, dword [ebp - 0x198]
test eax, eax
push 1
pop eax
cmovne ecx, eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x198], ecx
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x8c]
mov ecx, esi
call dword [0x101b03f8]
call esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x190]
mov byte [ebp - 4], 9
test eax, eax
je 0x10046d74
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101b03f8]
call esi
jmp 0x10046d74
call fcn.10014ba0
mov esi, eax
mov dword [ebp - 0x194], 4
test esi, esi
je 0x10046d74
cmp dword [ebp - 0x44], edi
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x190]
push eax
lea ecx, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x58]
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x198]
test eax, eax
push 1
pop eax
cmovne ecx, eax
push esi
mov dword [ebp - 0x198], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x198], 0
lea ecx, [ebp - 0x58]
setne bl
call fcn.10046f85
mov al, bl
call fcn.10004ff0
ret