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

Disassembly:
sub esp, 0x52c
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x528], eax
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x32d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x334], bl
call fcn.10116880
push 0x103
lea ecx, [esp + 0x235]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x23c], bl
call fcn.10116880
add esp, 0x18
cmp esi, ebx
je 0x10071e77
cmp byte [esi], bl
je 0x10071e77
cmp edi, ebx
je 0x10071e77
cmp byte [edi], bl
je 0x10071e77
push esi
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push esi
call fcn.1010d780
add esp, 8
test eax, eax
je 0x10071c6d
lea eax, [esp + 0x224]
push eax
mov dword [esp + 0x18], 1
call fcn.10042c70
add esp, 4
jmp 0x10071c71
mov dword [esp + 0x14], ebx
push edi
lea ecx, [esp + 0x32c]
push str.typelib_s
push ecx
call fcn.1010d6a8
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 9
push ebx
lea eax, [esp + 0x334]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x10071e5c
push ebp
push 0x103
lea ecx, [esp + 0x435]
push ebx
push ecx
mov byte [esp + 0x43c], bl
call fcn.10116880
push 0x207
lea edx, [esp + 0x31]
push ebx
push edx
call fcn.10116880
mov ecx, dword [esp + 0x28]
add esp, 0x18
push 0x208
lea eax, [esp + 0x24]
push eax
push ebx
push ecx
xor ebp, ebp
mov byte [esp + 0x30], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x10071e50
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x438]
push str.typelib_s_s0win32
push eax
call fcn.1010d6a8
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
lea edx, [esp + 0x43c]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x10071dfe
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x34], 0x208
mov byte [esp + 0x38], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x20], bl
je 0x10071dfe
cmp dword [esp + 0x18], ebx
je 0x10071da0
push 1
lea ecx, [esp + 0x24]
push ecx
call sym.EncDec.dll_IsItEnvStringType
lea edx, [esp + 0x20]
push edx
call fcn.10042c70
add esp, 4
lea eax, [esp + 0x228]
push eax
lea ecx, [esp + 0x24]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x10071e48
lea ecx, [esp + 0x20]
push 0x2e
push ecx
call fcn.1010e930
add esp, 8
cmp eax, ebx
je 0x10071dfa
push 0x5c
push eax
call fcn.1010d780
add esp, 8
cmp eax, ebx
je 0x10071dfa
lea edx, [esp + 0x228]
push edx
lea ecx, [esp + 0x24]
mov byte [eax], bl
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x10071e48
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x10]
push 0x208
lea eax, [esp + 0x24]
push eax
inc ebp
push ebp
push ecx
mov byte [esp + 0x30], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x10071d05
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.1010d699
add esp, 0x52c
ret
mov dword [esp + 0xc], 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, dword [esp + 8]
pop esi
pop ebx
mov ecx, dword [esp + 0x528]
xor ecx, esp
call fcn.1010d699
add esp, 0x52c
ret
mov ecx, dword [esp + 0x530]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1010d699
add esp, 0x52c
ret