Function at 0x10016b50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0x400
push 0x40
mov dword [esp + 0x18], 0x400
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [esp + 0x20]
push eax
call fcn.1000dd30
mov esi, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [esp + 0x24]
push 0x2e
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x10016ba0
lea edx, [esp + 0x20]
push 0x2e
push edx
call esi
add esp, 8
mov byte [eax], 0
mov edi, 0x10041e9c
lea esi, [esp + 0x20]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10016c70
mov edx, dword [esp + 0x140]
mov eax, dword [esp + 0x13c]
xor edi, edi
lea ecx, [esp + 0x34]
push edi
push 0x104
push ecx
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
test eax, eax
je 0x10016c5c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push edi
push 0x10041ea0
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x10016c5c
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push eax
lea eax, [esp + 0x40]
push eax
push ecx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10016c4d
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push ebx
push eax
push edi
push 0x10041ec0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10016c46
mov edi, 1
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
test edi, edi
jne 0x10016cec
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push ecx
mov ecx, dword [esp + 0x144]
push edx
mov edx, dword [esp + 0x144]
lea eax, [esp + 0x1c]
push ebx
push eax
push 1
push ecx
push edx
call esi
test eax, eax
jne 0x10016cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
push ebx
jne 0x10016c5d
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jae 0x10016cc8
push 0x42
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [esp + 0x10]
mov ebx, eax
mov edx, dword [esp + 0x140]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x140]
push ecx
lea ecx, [esp + 0x1c]
push ebx
push ecx
push 1
push edx
push eax
call esi
test eax, eax
je 0x10016c9e
mov al, byte [ebx]
mov ebp, ebx
test al, al
je 0x10016d4e
mov ecx, dword [esp + 0x144]
mov al, byte [ecx + 0x31c]
lea esi, [ecx + 0x31c]
test al, al
je 0x10016d36
push esi
push ebp
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x10016e6f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x10016d0b
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
test al, al
jne 0x10016cf4
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, 0x10041ecc
lea esi, [esp + 0x20]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10016c63
push 0x400
push 0x40
mov dword [esp + 0x18], 0x400
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x13c]
mov ebx, eax
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push eax
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push 2
push esi
push edi
call ebp
test eax, eax
jne 0x10016df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
push ebx
jne 0x10016c5d
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jae 0x10016de0
push 0x42
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ecx, dword [esp + 0x10]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x1c]
push ebx
push ecx
push 2
push esi
push edi
call ebp
test eax, eax
je 0x10016db2
mov al, byte [ebx]
mov ebp, ebx
test al, al
je 0x10016c5c
mov edx, dword [esp + 0x144]
add edx, 0x31c
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x18]
cmp byte [esi], 0
je 0x10016e43
push esi
push ebp
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x10016e6f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x10016e1c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
test al, al
jne 0x10016e13
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret