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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
je 0x100338c
cmp dword [ebp + 0xc], esi
je 0x100338c
cmp dword [ebp + 0x10], esi
je 0x100338c
cmp dword [ebp + 0x14], esi
je 0x100338c
cmp dword [ebp + 0x18], esi
je 0x100338c
push esi
push esi
push esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, esi
jne 0x100338f
cmp dword [ebp - 0x24], esi
mov eax, dword [ebp - 0xc]
je 0x100310a
cmp eax, esi
jne 0x100310a
mov dword [ebp - 0xc], 0x100
jmp 0x1003116
cmp eax, 0x100
jae 0x1003116
add eax, eax
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
call fcn.010099e1
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1003132
push 0xe
jmp 0x100338e
xor edi, edi
xor ebx, ebx
cmp dword [ebp - 0x28], esi
jbe 0x1003189
cmp edi, esi
jne 0x1003189
mov eax, dword [ebp - 0x20]
push esi
push esi
push esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x1003183
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.01002ed8
mov edi, eax
cmp edi, 0x4c7
jne 0x1003183
xor edi, edi
inc ebx
cmp ebx, dword [ebp - 0x28]
jb 0x100313b
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
cmp dword [ebp + 0x1c], esi
je 0x100338f
cmp edi, esi
jne 0x100338f
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.010099e1
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x10031bf
push 8
jmp 0x100338e
xor ebx, ebx
cmp dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
jbe 0x100336f
mov eax, dword [ebp - 0xc]
push esi
push esi
push esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1003353
lea eax, [ebp - 0x18]
push eax
push 0x20019
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1003353
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x1003353
push esi
push dword [ebp - 4]
call fcn.01009813
push esi
push dword [ebp + 0xc]
mov edi, eax
call fcn.01009813
lea eax, [edi + eax + 3]
mov dword [ebp - 8], eax
add eax, eax
push eax
call fcn.010099e1
cmp eax, esi
mov dword [ebp - 0x10], eax
je 0x1003350
push esi
push dword [ebp + 0xc]
call fcn.01009813
test eax, eax
jbe 0x1003295
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.01009ee4
push dword [ebp - 8]
push 0x10014b0
push dword [ebp - 0x10]
call fcn.0100a3ad
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.0100a3ad
push esi
push dword [ebp - 4]
call fcn.01009813
push esi
push dword [ebp + 0x14]
mov edi, eax
call fcn.01009813
lea eax, [edi + eax + 3]
mov dword [ebp - 8], eax
add eax, eax
push eax
call fcn.010099e1
push esi
push dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
call fcn.01009813
test eax, eax
jbe 0x10032f4
push dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call fcn.01009ee4
push dword [ebp - 8]
push 0x10014b0
push dword [ebp - 0x14]
call fcn.0100a3ad
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp - 0x14]
call fcn.0100a3ad
mov eax, dword [ebp + 0x20]
inc eax
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.01003070
mov edi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.01001b65
lea eax, [ebp - 0x1c]
push eax
call fcn.01001b65
lea eax, [ebp - 0x10]
push eax
call fcn.01009f4b
lea eax, [ebp - 0x14]
push eax
call fcn.01009f4b
inc ebx
cmp ebx, dword [ebp - 0x24]
jb 0x10031d0
jmp 0x1003353
push 0xe
pop edi
cmp dword [ebp - 0x18], esi
je 0x1003361
lea eax, [ebp - 0x18]
push eax
call fcn.01001b65
cmp dword [ebp - 0x1c], esi
je 0x100336f
lea eax, [ebp - 0x1c]
push eax
call fcn.01001b65
lea eax, [ebp - 4]
push eax
call fcn.01009f4b
lea eax, [ebp - 0x10]
push eax
call fcn.01009f4b
lea eax, [ebp - 0x14]
push eax
call fcn.01009f4b
jmp 0x100338f
push 0x57
pop edi
cmp dword [ebp + 0x20], esi
jne 0x10033c6
cmp edi, esi
je 0x10033ad
push edi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
jmp 0x10033c0
push esi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x20
push eax
call fcn.0100b4f9
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x1c