Function at 0x1030048
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10441a1
mov eax, dword fs:[0]
push eax
mov eax, 0x8258
call fcn.0100afd6
mov eax, dword [0x104d004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x8218], ebx
mov dword [ebp - 0x823c], 0x10032b4
mov dword [ebp - 0x8238], edi
mov dword [ebp - 0x8234], edi
lea ecx, [ebp - 0x823c]
mov dword [ebp - 4], edi
call fcn.0102fd48
mov esi, eax
cmp esi, edi
jl 0x10300bf
mov ecx, ebx
call fcn.0102f0f3
lea ecx, [ebx + 0x10]
call fcn.0102f0f3
mov dword [ebp - 0x8230], 0x10195ec
mov dword [ebp - 0x822c], edi
cmp esi, edi
mov byte [ebp - 4], 1
jl 0x10303ed
lea eax, [ebp - 0x822c]
push eax
push 0x20019
push edi
push 0x1030410
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x1030154
lea ecx, [ebp - 0x823c]
call fcn.0102fe1b
mov esi, eax
push edi
lea ecx, [ebp - 0x8230]
mov dword [ebp - 0x8230], 0x10195ec
call fcn.0102fb06
push edi
lea ecx, [ebp - 0x823c]
mov dword [ebp - 0x823c], 0x10032b4
call fcn.0100b77e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01001666
leave
ret 4
cmp eax, edi
je 0x1030160
push eax
call fcn.0100b113
mov esi, eax
cmp esi, edi
jl 0x10303ed
push 0x1fe
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x821c], edi
mov word [ebp - 0x210], di
call sub.msvcrt.dll_memset
add esp, 0xc
jmp 0x103034d
lea eax, [ebp - 0x8244]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x821c]
mov dword [ebp - 0x8244], 0x100
push dword [ebp - 0x822c]
call dword [sym.imp.SHLWAPI.dll_SHEnumKeyExW]
inc dword [ebp - 0x821c]
cmp eax, 0x103
je 0x103035a
cmp eax, edi
je 0x10301de
push eax
call fcn.0100b113
mov esi, eax
cmp esi, edi
jne 0x1030355
push 0x1c
call dword [0x1050b64]
cmp eax, edi
je 0x1030206
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], edi
mov dword [ebp - 0x8214], eax
jmp 0x103020c
mov dword [ebp - 0x8214], edi
mov ecx, dword [ebp - 0x8214]
cmp ecx, edi
jne 0x103021d
mov esi, 0x8007000e
jmp 0x1030252
lea eax, [ebp - 0x210]
push eax
call fcn.0102fc73
mov esi, eax
cmp esi, edi
jl 0x1030245
push dword [ebp - 0x8214]
lea ecx, [ebx + 0x10]
push dword [ebp - 0x8214]
call fcn.0102fe54
jmp 0x1030252
mov ecx, dword [ebp - 0x8214]
push 1
call fcn.0102ef7a
mov dword [ebp - 0x8224], 0x10195ec
mov dword [ebp - 0x8220], edi
cmp esi, edi
mov byte [ebp - 4], 2
jl 0x1030333
lea eax, [ebp - 0x8220]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x822c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x103029a
push eax
call fcn.0100b113
mov esi, eax
cmp esi, edi
jl 0x1030333
push 0x7ffe
lea eax, [ebp - 0x820e]
push edi
push eax
mov word [ebp - 0x8210], di
call sub.msvcrt.dll_memset
add esp, 0xc
xor ebx, ebx
jmp 0x1030322
lea eax, [ebp - 0x824c]
push eax
push edi
lea eax, [ebp - 0x8248]
push eax
lea eax, [ebp - 0x8240]
push eax
lea eax, [ebp - 0x8210]
push eax
push ebx
push dword [ebp - 0x8220]
mov dword [ebp - 0x8240], 0x4000
call dword [sym.imp.SHLWAPI.dll_SHEnumValueW]
inc ebx
cmp eax, 0x103
je 0x103032b
cmp eax, edi
je 0x103030e
push eax
call fcn.0100b113
mov esi, eax
cmp esi, edi
jne 0x1030326
mov ecx, dword [ebp - 0x8214]
lea eax, [ebp - 0x8210]
push eax
call fcn.0102fec4
mov esi, eax
cmp esi, edi
je 0x10302c2
cmp esi, 1
jne 0x103032d
xor esi, esi
mov ebx, dword [ebp - 0x8218]
push edi
lea ecx, [ebp - 0x8224]
mov byte [ebp - 4], 1
mov dword [ebp - 0x8224], 0x10195ec
call fcn.0102fb06
cmp esi, edi
je 0x103018f
cmp esi, 1
jne 0x103035c
xor esi, esi
cmp esi, edi
jl 0x10303ed
cmp dword [ebp + 8], edi
je 0x10303ed
add ebx, 0x10
push ebx
lea ecx, [ebp - 0x8264]
call fcn.0102ec15
lea ecx, [ebp - 0x8264]
call fcn.0102ed3a
test eax, eax
je 0x10303ed
mov eax, dword [ebp - 0x8254]
cmp eax, edi
je 0x103039a
mov ebx, dword [eax + 4]
jmp 0x103039c
xor ebx, ebx
lea eax, [ebx + 0x18]
lea ecx, [ebp - 0x8228]
mov dword [ebp - 0x8228], eax
mov dword [ebp - 0x8224], edi
mov dword [ebp - 0x8220], edi
call fcn.0102ea5e
cmp esi, edi
jl 0x10303ed
cmp eax, edi
je 0x10303e9
mov ecx, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x8218]
push eax
push ecx
call fcn.0102ff4b
lea ecx, [ebp - 0x8228]
mov esi, eax
call fcn.0102ea5e
cmp esi, edi
jge 0x10303c0
cmp esi, edi
jge 0x103037c
lea ecx, [ebp - 0x823c]
call fcn.0102fe1b
cmp esi, edi
jl 0x103010a
cmp eax, edi
jge 0x103010a
jmp 0x1030108