Function at 0x1044e6a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x27c
mov eax, 0x1058486
call fcn.01021f2c
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.010151da
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x270], ebx
call fcn.010151da
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.010151da
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 0x1045442
push edi
call fcn.01035549
test al, al
je 0x1045442
cmp esi, ebx
je 0x1045442
mov dword [esi], ebx
call fcn.01035328
xor esi, esi
inc esi
cmp eax, esi
je 0x1044f26
push 2
pop ecx
cmp eax, ecx
je 0x1044f26
cmp eax, 3
je 0x1044f1e
cmp eax, 4
je 0x1044f1e
cmp eax, 5
je 0x1044f1e
mov dword [ebp - 0x244], ecx
jmp 0x1044f2c
mov dword [ebp - 0x244], esi
jmp 0x1044f2c
mov dword [ebp - 0x244], ebx
lea eax, [ebp - 0x23c]
push eax
push edi
call fcn.01046b0f
test eax, eax
jne 0x1044f59
push dword [edi]
push 0x100e998
push 2
call fcn.0103ac75
add esp, 0xc
mov dword [ebp - 0x240], ebx
jmp 0x104540e
cmp dword [ebp - 0x244], ebx
jne 0x1044f70
mov dword [ebp - 0x240], 0x32
jmp 0x104540e
cmp dword [ebp - 0x244], esi
jne 0x1044fd5
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x268], esp
push eax
call fcn.010151f2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.0104660b
cmp eax, ebx
je 0x1044fae
push dword [ebp - 0x23c]
push 0x100f2a8
jmp 0x104503e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x23c]
mov dword [ebp - 0x240], eax
push 0x100f278
push eax
push 3
call fcn.0103ad09
add esp, 0x10
jmp 0x104540e
cmp dword [ebp - 0x244], 2
jne 0x1045047
push 0x100e624
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x26c], eax
cmp eax, ebx
jne 0x1045004
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x240], eax
jmp 0x10453fa
push 0x100f268
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x264], eax
cmp eax, ebx
je 0x1044ff3
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call fcn.01042917
push dword [ebp - 0x23c]
mov dword [ebp - 0x240], eax
cmp eax, ebx
jne 0x1045074
push 0x100f228
push esi
call fcn.0103ac75
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.01036032
test al, al
jne 0x1045089
mov dword [ebp - 0x240], 0x57
jmp 0x10453fa
push 0x100f1f4
push eax
push 3
call fcn.0103ad09
add esp, 0x10
jmp 0x10453fa
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 0x1044ff3
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 0x10453c3
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 0x1045392
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x280]
push ecx
push ebx
push 0x100e14c
push eax
mov dword [ebp - 0x278], 0x208
mov dword [ebp - 0x280], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x104537f
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 0x104537f
lea ecx, [ebp - 0x248]
call fcn.010151da
mov byte [ebp - 4], 4
lea eax, [ebp - 0x234]
push eax
push esi
lea edi, [ebp - 0x248]
call fcn.01042bb8
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 0x10452af
cmp eax, 0x25
je 0x10452af
cmp dword [ebp - 0x244], 1
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], ebx
push eax
jne 0x10451df
mov ecx, dword [ebp - 0x268]
lea esi, [ebp - 0x234]
call fcn.01044cf1
mov esi, dword [ebp - 0x268]
mov dword [ebp - 0x238], eax
jmp 0x1045236
push ebx
push ebx
lea eax, [ebp - 0x234]
push eax
push esi
push ebx
call dword [ebp - 0x264]
test eax, eax
jne 0x1045236
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x238], eax
cmp eax, 0xe0000203
jne 0x1045236
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 0x1045230
call edi
mov dword [ebp - 0x238], eax
jmp 0x1045236
mov dword [ebp - 0x238], ebx
mov eax, dword [ebp - 0x248]
cmp dword [ebp - 0x238], ebx
jne 0x1045260
cmp dword [eax - 0xc], ebx
je 0x1045258
push eax
push 0x100f190
push ebx
call fcn.0103ac75
add esp, 0xc
inc dword [ebp - 0x24c]
jmp 0x1045292
cmp dword [eax - 0xc], ebx
jne 0x104527c
push 0x100f154
push dword [ebp - 0x238]
push 3
call fcn.0103ad09
add esp, 0xc
jmp 0x1045292
push eax
push 0x100f0f8
push dword [ebp - 0x238]
push 3
call fcn.0103ad09
add esp, 0x10
cmp dword [ebp - 0x258], ebx
je 0x104536a
mov eax, dword [ebp - 0x27c]
mov dword [eax], 1
jmp 0x104536a
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 0x1045300
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 0x1045300
mov dword [ebp - 0x238], ebx
jmp 0x1045310
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
cmp eax, ebx
jne 0x1045332
mov eax, dword [ebp - 0x248]
cmp dword [eax - 0xc], ebx
je 0x104532a
push eax
push 0x100f070
push ebx
call fcn.0103ac75
add esp, 0xc
inc dword [ebp - 0x24c]
jmp 0x104536a
mov eax, dword [ebp - 0x248]
cmp dword [eax - 0xc], ebx
jne 0x1045354
push 0x100f154
push dword [ebp - 0x238]
push 3
call fcn.0103ad09
add esp, 0xc
jmp 0x104536a
push eax
push 0x100eff8
push dword [ebp - 0x238]
push 3
call fcn.0103ad09
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.01015174
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 0x10450cc
cmp dword [ebp - 0x25c], 0xffffffff
je 0x10453c3
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 0x10453eb
push dword [ebp - 0x24c]
push 0x100efa0
push 1
call fcn.0103ac75
jmp 0x1045081
push 0x100ef58
push 1
call fcn.0103ac75
add esp, 0xc
cmp dword [ebp - 0x26c], ebx
je 0x104540e
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x254]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.01015174
mov eax, dword [ebp - 0x240]
jmp 0x1045471
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.01015174
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x254]
call fcn.01015174
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.01015174
push 0x57
pop eax
call fcn.01021fbe
ret 0xc