Function at 0x1044aaa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x270
mov eax, 0x1058006
call fcn.01022105
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x27c], edi
call fcn.010155dc
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x264], ebx
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.010155dc
mov byte [ebp - 4], 2
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
je 0x1044f5d
push esi
call fcn.01035289
test al, al
je 0x1044f5d
cmp edi, ebx
je 0x1044f5d
mov dword [edi], ebx
call fcn.0103507a
push 2
pop edi
cmp eax, edi
je 0x1044b50
cmp eax, 3
je 0x1044b50
cmp eax, 4
mov dword [ebp - 0x250], edi
jne 0x1044b5a
mov dword [ebp - 0x250], 1
lea eax, [ebp - 0x238]
push eax
push esi
call fcn.0104661f
test eax, eax
jne 0x1044b86
push dword [esi]
push 0x100e790
push edi
call fcn.0103aac4
add esp, 0xc
mov dword [ebp - 0x23c], ebx
jmp 0x1044f29
cmp dword [ebp - 0x250], 1
jne 0x1044bec
push ecx
lea eax, [ebp - 0x238]
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call fcn.010157a2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.0104611b
cmp eax, ebx
je 0x1044bc5
push dword [ebp - 0x238]
push 0x100f6bc
jmp 0x1044c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
push 0x100f68c
push eax
push 3
call fcn.0103ab56
add esp, 0x10
jmp 0x1044f29
cmp dword [ebp - 0x250], edi
jne 0x1044c5e
push 0x100ef04
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x260], eax
jne 0x1044c1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x23c], eax
jmp 0x1044f15
push 0x100f67c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x25c], eax
je 0x1044c09
push dword [ebp + 0xc]
lea eax, [ebp - 0x238]
push eax
call fcn.01042659
cmp eax, ebx
push dword [ebp - 0x238]
mov dword [ebp - 0x23c], eax
jne 0x1044c8b
push 0x100f63c
push 1
call fcn.0103aac4
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.01035d59
test al, al
jne 0x1044ca0
mov dword [ebp - 0x23c], 0x57
jmp 0x1044f15
push 0x100f608
push eax
push 3
call fcn.0103ab56
add esp, 0x10
jmp 0x1044f15
push 6
push ebx
push ebx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x26c], edi
je 0x1044c09
lea eax, [ebp - 0x234]
push eax
push ebx
push edi
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x234], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1044ed5
inc dword [ebp - 0x264]
push 0x20019
push 2
push ebx
push 1
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x1044ea4
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x274]
push ecx
push ebx
push 0x100ea6c
push eax
mov dword [ebp - 0x278], 0x208
mov dword [ebp - 0x274], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1044e91
push 0xffffffffffffffff
push dword [ebp - 0x244]
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
push 1
push 0x800
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x1044e91
cmp dword [ebp - 0x250], 1
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], ebx
push eax
jne 0x1044d9a
lea esi, [ebp - 0x234]
mov ecx, edi
call fcn.01044932
jmp 0x1044de3
push ebx
push ebx
lea eax, [ebp - 0x234]
push eax
push edi
push ebx
call dword [ebp - 0x25c]
test eax, eax
jne 0x1044df1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xe0000203
mov dword [ebp - 0x240], eax
jne 0x1044df1
lea eax, [ebp - 0x248]
push eax
push 4
push ebx
lea eax, [ebp - 0x234]
push eax
push edi
push ebx
call dword [ebp - 0x25c]
test eax, eax
jne 0x1044deb
call esi
mov dword [ebp - 0x240], eax
jmp 0x1044df1
mov dword [ebp - 0x240], ebx
cmp dword [ebp - 0x240], ebx
jne 0x1044e01
inc dword [ebp - 0x254]
jmp 0x1044e77
call fcn.0103aa45
test eax, eax
je 0x1044e77
lea ecx, [ebp - 0x268]
call fcn.010155dc
mov byte [ebp - 4], 4
lea eax, [ebp - 0x234]
push eax
push edi
lea edi, [ebp - 0x268]
call fcn.01042bb4
test eax, eax
jne 0x1044e4d
push dword [ebp - 0x268]
push 0x100f5b0
push dword [ebp - 0x240]
push 3
call fcn.0103ab56
add esp, 0x10
jmp 0x1044e62
push 0x100f578
push dword [ebp - 0x240]
push 3
call fcn.0103ab56
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.010151a6
mov edi, dword [ebp - 0x26c]
cmp dword [ebp - 0x248], ebx
mov esi, dword [ebp - 0x270]
je 0x1044e91
mov eax, dword [ebp - 0x27c]
mov dword [eax], 1
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 0x258], 0xffffffff
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x264]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1044ce3
cmp dword [ebp - 0x258], 0xffffffff
je 0x1044ed5
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
call fcn.0103aa45
test eax, eax
je 0x1044f15
cmp dword [ebp - 0x254], ebx
push dword [esi]
je 0x1044f06
push dword [ebp - 0x254]
push 0x100f520
push 1
call fcn.0103aac4
jmp 0x1044c98
push 0x100f4d8
push 1
call fcn.0103aac4
add esp, 0xc
cmp dword [ebp - 0x260], ebx
je 0x1044f29
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24c]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.010151a6
mov eax, dword [ebp - 0x23c]
jmp 0x1044f8c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x244]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24c]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.010151a6
push 0x57
pop eax
call fcn.01022197
ret 0xc