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

Disassembly:
sub esp, 0xd54
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0xd50], eax
push ebx
push esi
xor ebx, ebx
push 0x40f
lea eax, [esp + 0x12d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x134], bl
call fcn.10116880
push 0x40f
lea ecx, [esp + 0x549]
push ebx
push ecx
mov byte [esp + 0x550], bl
call fcn.10116880
push 0x40f
lea edx, [esp + 0x965]
push ebx
push edx
mov byte [esp + 0x96c], bl
call fcn.10116880
push 0x103
lea eax, [esp + 0x4d]
push ebx
push eax
mov dword [esp + 0x48], ebx
mov byte [esp + 0x54], bl
call fcn.10116880
add esp, 0x30
cmp esi, ebx
je 0x100719e8
cmp byte [esi], bl
je 0x100719e8
push esi
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
push esi
call fcn.1010d780
add esp, 8
test eax, eax
je 0x100717c5
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x18], 1
call fcn.10042c70
add esp, 4
jmp 0x100717c9
mov dword [esp + 0x14], ebx
push ebp
push edi
lea eax, [esp + 0x540]
push str.CLSID
push eax
call fcn.1010d6a8
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 9
push ebx
lea edx, [esp + 0x54c]
push edx
push closesocket
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call ebp
cmp esi, ebx
jne 0x100719cb
mov ecx, dword [esp + 0x14]
push 0x410
lea eax, [esp + 0x134]
push eax
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x140], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x10071994
lea esp, [esp]
lea edx, [esp + 0x130]
push edx
lea eax, [esp + 0x954]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x950]
push ecx
lea edx, [esp + 0x544]
push str.clsid_sInProcServer32
push edx
mov byte [esp + 0x13c], bl
call fcn.1010d6a8
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 1
push ebx
lea ecx, [esp + 0x54c]
push ecx
push closesocket
call edi
mov esi, eax
push esi
call ebp
cmp esi, ebx
je 0x100718db
lea edx, [esp + 0x950]
push edx
lea eax, [esp + 0x544]
push str.clsid_sLocalServer32
push eax
call fcn.1010d6a8
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 1
push ebx
lea edx, [esp + 0x54c]
push edx
push closesocket
call edi
mov esi, eax
push esi
call ebp
cmp esi, ebx
jne 0x10071964
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push eax
mov dword [esp + 0x3c], 0x410
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x1007191d
cmp eax, 2
jne 0x10071964
cmp byte [esp + 0x130], bl
je 0x10071964
cmp dword [esp + 0x1c], ebx
je 0x1007194b
push 1
lea edx, [esp + 0x134]
push edx
call sym.EncDec.dll_IsItEnvStringType
lea eax, [esp + 0x130]
push eax
call fcn.10042c70
add esp, 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x134]
call fcn.10047020
add esp, 4
cmp eax, 0xffffffff
jne 0x100719bc
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x410
lea edx, [esp + 0x134]
push edx
push eax
push ecx
mov byte [esp + 0x140], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x10071840
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0xd50]
xor ecx, esp
call fcn.1010d699
add esp, 0xd54
ret
mov eax, dword [esp + 0x14]
push eax
call esi
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0xd50]
xor ecx, esp
call fcn.1010d699
add esp, 0xd54
ret
mov ecx, dword [esp + 0xd58]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1010d699
add esp, 0xd54
ret