Function at 0x1043446
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xa70
mov eax, 0x1058040
call fcn.01021f2c
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.010161a7
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0xa44]
call fcn.010161a7
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp - 0xa3c]
call fcn.010161a7
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.01046b0f
test eax, eax
jne 0x10434c8
push dword [esi]
push 0x100e998
push 2
call fcn.0103ac75
add esp, 0xc
jmp 0x10437fa
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa44]
push eax
lea eax, [ebp - 0xa38]
push eax
call fcn.01036032
test al, al
jne 0x10434f5
push dword [ebp - 0xa38]
push 0x100e938
push 3
jmp 0x10434bb
lea ecx, [ebp - 0xa4c]
call fcn.010427b7
mov esi, dword [ebp - 0xa4c]
push 4
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.010455f2
test eax, eax
jne 0x1043527
mov byte [ebp - 4], 2
cmp esi, ebx
je 0x10437fa
jmp 0x10437ed
lea ecx, [ebp - 0xa34]
push ecx
mov dword [ebp - 0xa34], 0x1c
mov dword [ebp - 0xa54], ebx
push ebx
jmp 0x10437d7
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 0x1043573
cmp eax, 0x25
jne 0x10437ca
mov dword [ebp - 0xa58], ebx
mov dword [ebp - 0xa50], ebx
cmp dword [ebp - 0xa58], ebx
jne 0x10437ca
mov edi, 0x800
push edi
lea eax, [ebp - 0xa18]
push ebx
push eax
call fcn.010219e0
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 0x10437b7
cmp word [ebp - 0xa18], bx
lea eax, [ebp - 0xa18]
jmp 0x10437ab
cmp dword [ebp - 0xa58], ebx
jne 0x10437b7
mov eax, dword [ebp - 0xa64]
mov eax, dword [eax]
mov dword [ebp - 0xa68], eax
cmp eax, ebx
je 0x1043797
mov ecx, dword [ebp - 0xa64]
lea eax, [ebp - 0xa68]
push eax
call fcn.0105038c
push eax
lea ecx, [ebp - 0xa40]
call fcn.010151f2
mov byte [ebp - 4], 4
push dword [ebp - 0xa5c]
push dword [ebp - 0xa40]
call fcn.010224ed
pop ecx
pop ecx
test eax, eax
jne 0x104377c
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 0x104377c
lea ecx, [ebp - 0xa60]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xa74]
push ecx
push ebx
push 0x100e14c
push eax
mov dword [ebp - 0xa60], 0x208
mov dword [ebp - 0xa74], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1043770
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 0x10436f7
mov eax, dword [ebp - 0xa70]
push dword [eax]
push dword [ebp - 0xa40]
push 0x100e890
push edi
call fcn.0103ac75
add esp, 0x10
jmp 0x1043770
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 0x104375c
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 0x1043753
push 0x100e7e0
jmp 0x1043767
push 0x100e740
push 3
jmp 0x1043768
push dword [ebp - 0xa40]
push 0x100e698
push edi
call fcn.0103ac75
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.01015174
cmp dword [ebp - 0xa68], ebx
jne 0x1043611
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 0x10435ef
inc dword [ebp - 0xa50]
cmp dword [ebp - 0xa50], 2
jb 0x104357f
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 0x1043544
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0101a986
mov dword [ebp - 0xa4c], ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa3c]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa44]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa38]
call fcn.01015174
call fcn.01021fbe
ret 4