Function at 0x1004200
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x100c034]
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], 0
push 2
push 0
push 0
push 0x10012b0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x100423b
xor eax, eax
jmp 0x100450d
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x24], 0
jmp 0x1004254
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x10044f0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
jne 0x10042de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xd
jne 0x10042ab
jmp 0x10042de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10042d7
cmp dword [ebp - 0x38], 0
je 0x10042c6
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x34]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x38], eax
jmp 0x10042dc
jmp 0x1004500
jmp 0x100427c
cmp dword [ebp - 0x38], 0
jne 0x10042e9
jmp 0x100424b
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x30], edx
jmp 0x1004305
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10044d4
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x34]
cmp dword [ebp - 0x30], edx
jae 0x10044d4
push 0x10017cc
mov eax, dword [ebp - 0x30]
push eax
call fcn.01003320
test eax, eax
je 0x10044cf
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0x104
mov dword [ebp - 0x3c], 1
push 0xf003f
push 2
push 0
push 1
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x10043b5
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10017a0
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xd0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
jne 0x1004376
jmp 0x10044d4
mov eax, dword [ebp - 0x48]
push eax
call fcn.01005e3b
add esp, 4
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x1004415
push 0
push 0
push 0x100177c
lea ecx, [ebp - 0x150]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001388
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jne 0x10043ca
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], 0
jmp 0x10044d4
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0x1001774
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x1004474
mov eax, dword [ebp - 0x4c]
push eax
call fcn.01005d15
add esp, 4
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], 0
mov edx, dword [ebp - 0x4c]
push edx
call fcn.01005d15
add esp, 4
mov dword [ebp - 0x4c], 0
jmp 0x10044d4
push 0x1001768
mov eax, dword [ebp - 0x4c]
push eax
call fcn.01003320
test eax, eax
je 0x10044cd
cmp dword [ebp - 0x4c], 0
je 0x100449f
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.01005d15
add esp, 4
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x38], 0
je 0x10044b6
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.01003f30
jmp 0x10044d4
jmp 0x10042f1
cmp dword [ebp - 0x38], 0
je 0x10044eb
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x38], 0
jmp 0x100424b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1004500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
call fcn.01005938
mov esp, ebp
pop ebp
ret