Function at 0x103be50
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105980c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x43c
mov eax, dword [0x106406c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x25c]
call fcn.01039360
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.01010c62
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
push eax
push 0x100acc8
push 1
call fcn.0102e650
add esp, 0xc
push 0x100a228
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x103bef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x258], eax
jmp 0x103c4a4
push 0x100a210
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x103bf1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x258], eax
jmp 0x103c4a4
lea edx, [ebp - 0x38]
push edx
push 0
push 0x104
lea eax, [ebp - 0x24c]
push eax
push 8
push 1
push 0
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfW]
test eax, eax
jne 0x103bf52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x103bf74
mov ecx, dword [ebp + 8]
push ecx
push 0x100ac58
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x258], 0x65b
jmp 0x103c4a4
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x40]
call fcn.01011a82
lea ecx, [ebp - 0x25c]
call fcn.0103de60
push 4
push 0
push 0
push 0
lea ecx, [ebp - 0x25c]
call fcn.01041990
mov ecx, eax
call fcn.01040870
test eax, eax
jne 0x103bfb8
mov dword [ebp - 0x258], 0x65b
jmp 0x103c4a4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x30], 0x1c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x42c], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x42c]
push edx
lea ecx, [ebp - 0x25c]
call fcn.01041990
mov ecx, eax
call fcn.0103a860
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x103c47f
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x404], 0xffffffff
lea ecx, [ebp - 0x3f8]
call fcn.01010c62
mov byte [ebp - 4], 3
mov dword [ebp - 0x400], 0
push 0
push 0xc8
lea edx, [ebp - 0x3f4]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x25c]
call fcn.01041990
mov ecx, eax
call fcn.0103a860
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
jne 0x103c082
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
jmp 0x103c3fb
push 0x20019
push 2
push 0
push 1
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x25c]
call fcn.01041990
mov ecx, eax
call fcn.0103a860
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0xffffffff
jne 0x103c176
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x260]
and edx, 0xe0000000
cmp edx, 0xe0000000
jne 0x103c0fa
mov eax, dword [ebp - 0x260]
and eax, 0xffff
or eax, 0xf0000
or eax, 0x80000000
mov dword [ebp - 0x430], eax
jmp 0x103c13b
cmp dword [ebp - 0x260], 0
jg 0x103c111
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x434], ecx
jmp 0x103c12f
mov edx, dword [ebp - 0x260]
and edx, 0xffff
or edx, 0x70000
or edx, 0x80000000
mov dword [ebp - 0x434], edx
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0x800f0204
je 0x103c162
lea ecx, [ebp - 0x3f4]
push ecx
push 0x100ac00
push 2
call fcn.0102e650
add esp, 0xc
jmp 0x103c3fb
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3f8]
call fcn.01010c92
jmp 0x103bfd7
push 0x104
lea ecx, [ebp - 0x3f8]
call fcn.01011310
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x40c], 0x208
lea edx, [ebp - 0x40c]
push edx
mov eax, dword [ebp - 0x3fc]
push eax
push 0
push 0
push 0x100a370
mov ecx, dword [ebp - 0x408]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x103c1f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x3f8]
call fcn.01010a85
lea edx, [ebp - 0x3f4]
push edx
push 0x100aba8
push 2
call fcn.0102e650
add esp, 0xc
jmp 0x103c3fb
push 0xffffffffffffffff
lea ecx, [ebp - 0x3f8]
call fcn.01010a85
lea ecx, [ebp - 0x3f8]
call fcn.010107dc
push eax
lea ecx, [ebp - 0x40]
call fcn.0101095c
test eax, eax
jne 0x103c3f1
lea eax, [ebp - 0x3f4]
push eax
push 0x100ab28
push 1
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x400], 1
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_DevNode_Status]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0xd
je 0x103c34a
cmp dword [ebp - 0x410], 0x25
je 0x103c34a
lea ecx, [ebp - 0x3f4]
push ecx
push 0x100aa80
push 1
call fcn.0102e650
add esp, 0xc
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoList]
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0xffffffff
jne 0x103c2b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
jmp 0x103c3fb
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x34]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x420], esp
lea edx, [ebp - 0x3f4]
push edx
call fcn.0101236d
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.01010987
push ecx
mov ecx, esp
mov dword [ebp - 0x424], esp
push eax
call fcn.0101236d
mov dword [ebp - 0x440], eax
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x444], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x404]
push edx
mov byte [ebp - 4], 3
call fcn.0103d620
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x448]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x103c345
jmp 0x103c3fb
jmp 0x103c3f1
lea ecx, [ebp - 0x3f4]
push ecx
push 0x100a9f0
push 1
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x41c], 0
push 0
push 4
lea edx, [ebp - 0x41c]
push edx
push 0
push 0xa
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x25c]
call fcn.01041990
mov ecx, eax
call fcn.0103a860
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
jne 0x103c3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
jmp 0x103c3fb
mov ecx, dword [ebp - 0x41c]
or ecx, 0x20
mov dword [ebp - 0x41c], ecx
push 4
lea edx, [ebp - 0x41c]
push edx
push 0xa
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x25c]
call fcn.01041990
mov ecx, eax
call fcn.0103a860
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyW]
test eax, eax
jne 0x103c3f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x260], eax
jmp 0x103c3fb
mov dword [ebp - 0x260], 0
cmp dword [ebp - 0x404], 0xffffffff
je 0x103c411
mov ecx, dword [ebp - 0x404]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
cmp dword [ebp - 0x408], 0xffffffff
je 0x103c430
cmp dword [ebp - 0x408], 0
je 0x103c430
mov edx, dword [ebp - 0x408]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x260], 0
je 0x103c46b
cmp dword [ebp - 0x400], 0
je 0x103c461
lea eax, [ebp - 0x3f4]
push eax
push 0x100a998
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x3c], 1
jmp 0x103c46b
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3f8]
call fcn.01010c92
jmp 0x103bfd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x103c49a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x258], eax
jmp 0x103c4a4
mov dword [ebp - 0x258], 0
cmp dword [ebp - 0x254], 0
je 0x103c4c4
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x254], 0
cmp dword [ebp - 0x258], 0
jne 0x103c506
cmp dword [ebp - 0x3c], 0
je 0x103c4ee
push 0x100a8e8
push 3
call fcn.0102e650
add esp, 8
mov dword [ebp - 0x258], 0x643
jmp 0x103c506
cmp dword [ebp - 0x250], 0
je 0x103c506
push 0x100a858
push 2
call fcn.0102e650
add esp, 8
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x428], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x25c]
call fcn.010395d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 8