Function at 0x610211e1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x27c
mov eax, 0x610401b1
call fcn.6102b349
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x27c], esi
call fcn.6100d83e
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x270], ebx
call fcn.6100d83e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.6100d83e
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x264], ebx
cmp dword [eax - 0xc], ebx
je 0x610217b9
push edi
call fcn.61017809
test al, al
je 0x610217b9
cmp esi, ebx
je 0x610217b9
mov dword [esi], ebx
call fcn.61017625
xor esi, esi
inc esi
cmp eax, esi
je 0x6102129d
push 2
pop ecx
cmp eax, ecx
je 0x6102129d
cmp eax, 3
je 0x61021295
cmp eax, 4
je 0x61021295
cmp eax, 5
je 0x61021295
mov dword [ebp - 0x244], ecx
jmp 0x610212a3
mov dword [ebp - 0x244], esi
jmp 0x610212a3
mov dword [ebp - 0x244], ebx
lea eax, [ebp - 0x23c]
push eax
push edi
call fcn.61012954
test eax, eax
jne 0x610212d0
push dword [edi]
push 0x61005198
push 2
call fcn.6101b566
add esp, 0xc
mov dword [ebp - 0x240], ebx
jmp 0x61021785
cmp dword [ebp - 0x244], ebx
jne 0x610212e7
mov dword [ebp - 0x240], 0x32
jmp 0x61021785
cmp dword [ebp - 0x244], esi
jne 0x6102134c
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x268], esp
push eax
call fcn.6100d869
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.61012450
cmp eax, ebx
je 0x61021325
push dword [ebp - 0x23c]
push 0x61005aa8
jmp 0x610213b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x23c]
mov dword [ebp - 0x240], eax
push 0x61005a78
push eax
push 3
call fcn.6101b5fa
add esp, 0x10
jmp 0x61021785
cmp dword [ebp - 0x244], 2
jne 0x610213be
push 0x61004e24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x26c], eax
cmp eax, ebx
jne 0x6102137b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x240], eax
jmp 0x61021771
push 0x61005a68
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x264], eax
cmp eax, ebx
je 0x6102136a
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call fcn.6101ec8e
push dword [ebp - 0x23c]
mov dword [ebp - 0x240], eax
cmp eax, ebx
jne 0x610213eb
push 0x61005a28
push esi
call fcn.6101b566
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.610182a8
test al, al
jne 0x61021400
mov dword [ebp - 0x240], 0x57
jmp 0x61021771
push 0x610059f4
push eax
push 3
call fcn.6101b5fa
add esp, 0x10
jmp 0x61021771
push 4
push ebx
push ebx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
mov dword [ebp - 0x268], esi
cmp esi, 0xffffffff
je 0x6102136a
lea eax, [ebp - 0x234]
push eax
push ebx
push esi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x234], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x6102173a
inc dword [ebp - 0x270]
push 0x20019
push 2
push ebx
push 1
lea eax, [ebp - 0x234]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x61021709
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push ebx
push 0x61004950
push eax
mov dword [ebp - 0x278], 0x208
mov dword [ebp - 0x280], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x610216f6
push 0xffffffffffffffff
push dword [ebp - 0x250]
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x610216f6
lea ecx, [ebp - 0x248]
call fcn.6100d83e
mov byte [ebp - 4], 4
lea eax, [ebp - 0x234]
push eax
push esi
lea edi, [ebp - 0x248]
call fcn.6101ef2f
push ebx
push dword [ebp - 0x220]
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
cmp eax, 0xd
je 0x61021626
cmp eax, 0x25
je 0x61021626
cmp dword [ebp - 0x244], 1
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], ebx
push eax
jne 0x61021556
mov ecx, dword [ebp - 0x268]
lea esi, [ebp - 0x234]
call fcn.61021068
mov esi, dword [ebp - 0x268]
mov dword [ebp - 0x238], eax
jmp 0x610215ad
push ebx
push ebx
lea eax, [ebp - 0x234]
push eax
push esi
push ebx
call dword [ebp - 0x264]
test eax, eax
jne 0x610215ad
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x238], eax
cmp eax, 0xe0000203
jne 0x610215ad
lea eax, [ebp - 0x258]
push eax
push 4
push ebx
lea eax, [ebp - 0x234]
push eax
push esi
push ebx
call dword [ebp - 0x264]
test eax, eax
jne 0x610215a7
call edi
mov dword [ebp - 0x238], eax
jmp 0x610215ad
mov dword [ebp - 0x238], ebx
mov eax, dword [ebp - 0x248]
cmp dword [ebp - 0x238], ebx
jne 0x610215d7
cmp dword [eax - 0xc], ebx
je 0x610215cf
push eax
push 0x61005990
push ebx
call fcn.6101b566
add esp, 0xc
inc dword [ebp - 0x24c]
jmp 0x61021609
cmp dword [eax - 0xc], ebx
jne 0x610215f3
push 0x61005954
push dword [ebp - 0x238]
push 3
call fcn.6101b5fa
add esp, 0xc
jmp 0x61021609
push eax
push 0x610058f8
push dword [ebp - 0x238]
push 3
call fcn.6101b5fa
add esp, 0x10
cmp dword [ebp - 0x258], ebx
je 0x610216e1
mov eax, dword [ebp - 0x27c]
mov dword [eax], 1
jmp 0x610216e1
push ebx
push 4
lea eax, [ebp - 0x260]
push eax
push ebx
push 0xa
lea eax, [ebp - 0x234]
push eax
push esi
mov dword [ebp - 0x260], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x61021677
or dword [ebp - 0x260], 0x20
push 4
lea eax, [ebp - 0x260]
push eax
push 0xa
lea eax, [ebp - 0x234]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyW]
test eax, eax
je 0x61021677
mov dword [ebp - 0x238], ebx
jmp 0x61021687
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
cmp eax, ebx
jne 0x610216a9
mov eax, dword [ebp - 0x248]
cmp dword [eax - 0xc], ebx
je 0x610216a1
push eax
push 0x61005870
push ebx
call fcn.6101b566
add esp, 0xc
inc dword [ebp - 0x24c]
jmp 0x610216e1
mov eax, dword [ebp - 0x248]
cmp dword [eax - 0xc], ebx
jne 0x610216cb
push 0x61005954
push dword [ebp - 0x238]
push 3
call fcn.6101b5fa
add esp, 0xc
jmp 0x610216e1
push eax
push 0x610057f8
push dword [ebp - 0x238]
push 3
call fcn.6101b5fa
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.6100d793
mov edi, dword [ebp - 0x274]
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 0x25c], 0xffffffff
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x270]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x61021443
cmp dword [ebp - 0x25c], 0xffffffff
je 0x6102173a
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push dword [edi]
cmp dword [ebp - 0x24c], ebx
je 0x61021762
push dword [ebp - 0x24c]
push 0x610057a0
push 1
call fcn.6101b566
jmp 0x610213f8
push 0x61005758
push 1
call fcn.6101b566
add esp, 0xc
cmp dword [ebp - 0x26c], ebx
je 0x61021785
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.6100d793
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x254]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.6100d793
mov eax, dword [ebp - 0x240]
jmp 0x610217e8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.6100d793
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x254]
call fcn.6100d793
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.6100d793
push 0x57
pop eax
call fcn.6102b3db
ret 0xc