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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
xor edi, edi
push 8
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xb0], edi
call esi
pop ecx
mov dword [ebp - 0x94], eax
cmp eax, edi
jne 0x1002f92
push 0x1001980
push 1
call fcn.010040f7
pop ecx
mov dword [ebp - 0x80], 0xe
jmp 0x10033ed
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x8c]
push eax
push edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
inc dword [ebp - 0x90]
mov ebx, eax
cmp ebx, edi
je 0x1002fee
push edi
push 0x104
mov esi, 0x10063e0
push esi
push edi
push ebx
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
push 0x1001938
push 1
call fcn.010040f7
add esp, 0xc
mov dword [ebp - 0x80], ebx
jmp 0x10033e1
push dword [ebp - 0x90]
call esi
pop ecx
mov dword [ebp - 0x88], eax
cmp eax, edi
jne 0x100301b
push 0x1001904
push 1
call fcn.010040f7
pop ecx
pop ecx
mov dword [ebp - 0x80], 0xe
jmp 0x10033cc
push edi
lea eax, [ebp - 0xa8]
push eax
push edi
push 0x20006
push edi
push edi
push edi
mov ebx, 0x1001180
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x7c], eax
cmp eax, edi
je 0x100307a
push edi
push 0x104
mov esi, 0x10063e0
push esi
push edi
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
push ebx
push 0x10018d0
push 1
call fcn.010040f7
mov eax, dword [ebp - 0x7c]
add esp, 0x10
mov dword [ebp - 0x80], eax
jmp 0x10033cc
cmp dword [ebp - 0x8c], edi
jbe 0x10033c0
mov ebx, dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 0x84], 1
mov esi, 0x10063e0
mov eax, dword [ebp - 0x90]
push edi
push edi
push edi
mov dword [ebp - 0x9c], eax
push edi
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
dec eax
push eax
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x7c], eax
cmp eax, edi
je 0x1003113
push edi
push 0x104
push esi
push edi
push eax
push edi
push 0x1000
call ebx
push esi
push dword [ebp - 0x7c]
push 0x10011c0
push dword [ebp - 0x8c]
push dword [ebp - 0x84]
push 0x1001878
push 1
call fcn.010040f7
add esp, 0x1c
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
jmp 0x10033a7
push dword [ebp - 0x94]
push dword [ebp - 0x9c]
push dword [ebp - 0x88]
call fcn.0100259a
cmp al, 1
je 0x100315b
push dword [ebp - 0x8c]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push 0x1001830
push 1
call fcn.010040f7
add esp, 0x14
mov dword [ebp - 0x80], 0x57
jmp 0x10033a7
mov ecx, dword [ebp - 0x94]
movzx eax, word [ecx + 6]
cdq
push edx
push eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
shrd eax, ecx, 0x18
push edi
and eax, 0xffffff
push eax
push dword [ebp - 0x8c]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push 0x10017d0
push edi
call fcn.010040f7
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x94]
call sub.IPHLPAPI.DLL_ConvertInterfaceLuidToGuid
movzx eax, byte [ebp - 0x69]
push eax
movzx eax, byte [ebp - 0x6a]
push eax
movzx eax, byte [ebp - 0x6b]
push eax
movzx eax, byte [ebp - 0x6c]
push eax
movzx eax, byte [ebp - 0x6d]
push eax
movzx eax, byte [ebp - 0x6e]
push eax
movzx eax, byte [ebp - 0x6f]
push eax
movzx eax, byte [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x74]
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push 0x1001794
push edi
push edi
push edi
push 0x64
push eax
call fcn.01002dbb
add esp, 0x44
mov dword [ebp - 0x7c], eax
cmp eax, edi
je 0x1003222
push edi
push 0x104
push esi
push edi
push eax
push edi
push 0x1000
call ebx
push esi
push dword [ebp - 0x7c]
push 0x1001760
push 1
call fcn.010040f7
add esp, 0x10
jmp 0x1003108
push dword [ebp - 0x8c]
lea eax, [ebp - 0x68]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push eax
push 0x100172c
push edi
call fcn.010040f7
add esp, 0x18
lea eax, [ebp - 0x98]
push eax
push 0x20019
push edi
push dword [ebp - 0x88]
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x7c], eax
push edi
cmp eax, edi
je 0x10032ac
push 0x104
push esi
push edi
push eax
push edi
push 0x1000
call ebx
push esi
push dword [ebp - 0x7c]
push 0x10011c0
push dword [ebp - 0x8c]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push 0x10016c8
push 1
call fcn.010040f7
add esp, 0x20
jmp 0x1003108
lea eax, [ebp - 0xa0]
push eax
push edi
push 0x20006
push edi
push edi
push edi
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x7c], eax
cmp eax, edi
je 0x1003302
push edi
push 0x104
push esi
push edi
push eax
push edi
push 0x1000
call ebx
push esi
push dword [ebp - 0x7c]
push 0x100168c
push 1
call fcn.010040f7
mov eax, dword [ebp - 0x7c]
add esp, 0x10
mov dword [ebp - 0x80], eax
jmp 0x100339b
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xac]
push eax
push edi
push edi
push 0x1001404
push dword [ebp - 0x98]
mov dword [ebp - 0xb0], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003349
push dword [ebp - 0xac]
push dword [ebp - 0xa0]
call fcn.010027aa
cmp eax, edi
je 0x1003349
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0xa4]
push eax
push 0x20019
push edi
push 0x10015c4
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100338f
push dword [ebp - 0xa4]
push dword [ebp - 0xa0]
call fcn.01002c9b
cmp eax, edi
je 0x1003383
mov dword [ebp - 0x80], eax
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x84]
mov eax, dword [ebp - 0x84]
dec eax
cmp eax, dword [ebp - 0x8c]
jb 0x100309b
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x88], edi
je 0x10033e1
push dword [ebp - 0x88]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x94]
call dword [sym.imp.msvcrt.dll_free]
mov eax, dword [ebp - 0x80]
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003760
leave
ret 4