Function at 0x6101f7bd
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xa70
mov eax, 0x6103fd6b
call fcn.6102b349
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0xa38]
mov dword [ebp - 0xa70], esi
mov dword [ebp - 0xa64], eax
call fcn.6100dfda
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0xa44]
call fcn.6100dfda
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp - 0xa3c]
call fcn.6100dfda
mov byte [ebp - 4], 2
mov dword [ebp - 0xa4c], ebx
mov byte [ebp - 4], 3
lea eax, [ebp - 0xa38]
push eax
push esi
call fcn.61012954
test eax, eax
jne 0x6101f83f
push dword [esi]
push 0x61005198
push 2
call fcn.6101b566
add esp, 0xc
jmp 0x6101fb71
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa44]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.610182a8
test al, al
jne 0x6101f86c
push dword [ebp - 0xa38]
push 0x61005138
push 3
jmp 0x6101f832
lea ecx, [ebp - 0xa4c]
call fcn.61019681
mov esi, dword [ebp - 0xa4c]
push 4
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.61011088
test eax, eax
jne 0x6101f89e
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x6101fb71
jmp 0x6101fb64
lea ecx, [ebp - 0xa34]
push ecx
mov dword [ebp - 0xa34], 0x1c
mov dword [ebp - 0xa54], ebx
push ebx
jmp 0x6101fb4e
inc dword [ebp - 0xa54]
push ebx
push dword [ebp - 0xa20]
lea eax, [ebp - 0xa7c]
push eax
lea eax, [ebp - 0xa78]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
cmp eax, 0xd
je 0x6101f8ea
cmp eax, 0x25
jne 0x6101fb41
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa50], ebx
cmp dword [ebp - 0xa58], ebx
jne 0x6101fb41
mov edi, 0x800
push edi
lea eax, [ebp - 0xa18]
push ebx
push eax
call fcn.6102bb20
add esp, 0xc
lea ecx, [ebp - 0xa60]
push ecx
push edi
lea ecx, [ebp - 0xa18]
push ecx
xor ecx, ecx
cmp dword [ebp - 0xa50], ebx
push ebx
setne cl
mov dword [ebp - 0xa60], edi
mov eax, dword [esi + 8]
inc ecx
push ecx
lea ecx, [ebp - 0xa34]
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x6101fb2e
cmp word [ebp - 0xa18], bx
lea eax, [ebp - 0xa18]
jmp 0x6101fb22
cmp dword [ebp - 0xa58], ebx
jne 0x6101fb2e
mov eax, dword [ebp - 0xa64]
mov eax, dword [eax]
mov dword [ebp - 0xa68], eax
cmp eax, ebx
je 0x6101fb0e
mov ecx, dword [ebp - 0xa64]
lea eax, [ebp - 0xa68]
push eax
call fcn.6101e793
push eax
lea ecx, [ebp - 0xa40]
call fcn.6100d869
mov byte [ebp - 4], 4
push dword [ebp - 0xa5c]
push dword [ebp - 0xa40]
call fcn.6102c03c
pop ecx
pop ecx
test eax, eax
jne 0x6101faf3
mov eax, dword [esi + 8]
push 0x20019
push 2
push ebx
xor edi, edi
inc edi
push edi
lea ecx, [ebp - 0xa34]
push ecx
push eax
mov dword [ebp - 0xa58], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0xa6c], eax
cmp eax, 0xffffffff
je 0x6101faf3
lea ecx, [ebp - 0xa60]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xa74]
push ecx
push ebx
push 0x61004950
push eax
mov dword [ebp - 0xa60], 0x208
mov dword [ebp - 0xa74], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6101fae7
push 0xffffffffffffffff
push dword [ebp - 0xa3c]
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
push edi
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x6101fa6e
mov eax, dword [ebp - 0xa70]
push dword [eax]
push dword [ebp - 0xa40]
push 0x61005090
push edi
call fcn.6101b566
add esp, 0x10
jmp 0x6101fae7
push ebx
push 4
lea ecx, [ebp - 0xa48]
push ecx
push ebx
push 0xa
lea ecx, [ebp - 0xa34]
mov dword [ebp - 0xa48], ebx
mov eax, dword [esi + 8]
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x6101fad3
or dword [ebp - 0xa48], 0x20
mov eax, dword [esi + 8]
push 4
lea ecx, [ebp - 0xa48]
push ecx
push 0xa
lea ecx, [ebp - 0xa34]
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyW]
push dword [ebp - 0xa40]
test eax, eax
je 0x6101faca
push 0x61004fe0
jmp 0x6101fade
push 0x61004f40
push 3
jmp 0x6101fadf
push dword [ebp - 0xa40]
push 0x61004e98
push edi
call fcn.6101b566
add esp, 0xc
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa40]
call fcn.6100d793
cmp dword [ebp - 0xa68], ebx
jne 0x6101f988
mov edi, dword [ebp - 0xa5c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [edi + eax*2 + 2]
cmp word [eax], bx
mov dword [ebp - 0xa5c], eax
jne 0x6101f966
inc dword [ebp - 0xa50]
cmp dword [ebp - 0xa50], 2
jb 0x6101f8f6
lea ecx, [ebp - 0xa34]
push ecx
push dword [ebp - 0xa54]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x6101f8bb
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.6100d0cb
mov dword [ebp - 0xa4c], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa3c]
call fcn.6100d793
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa44]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa38]
call fcn.6100d793
call fcn.6102b3db
ret 4