Function at 0x100189e7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
je 0x10018a11
push str.HoundThreadProc_start_
push 3
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x40]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [ebp - 0x310], 0x10038498
mov dword [ebp - 0x338], 0xffffffff
push 0x12
push 0
push 0
mov eax, dword [ebp - 0x310]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x338], eax
cmp dword [ebp - 0x338], 0xffffffff
jne 0x10018a4e
xor eax, eax
jmp 0x10018c8d
mov dword [ebp - 0x334], 0x1c
mov dword [ebp - 0x318], 0
mov byte [ebp - 0x314], 1
push 0x30c
push 0
lea ecx, [ebp - 0x30c]
push ecx
call fcn.10029860
add esp, 0xc
lea edx, [ebp - 0x334]
push edx
mov eax, dword [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x310]
push ecx
push 0
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x10018bc6
mov dword [ebp - 0x354], 0x1c
lea eax, [ebp - 0x354]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x334]
push ecx
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
jne 0x10018aea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10018aea
jmp 0x10018c34
push 0
push 0x100
lea eax, [ebp - 0x208]
push eax
push 0
push 0xc
lea ecx, [ebp - 0x354]
push ecx
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push 0
push 0x100
lea eax, [ebp - 0x108]
push eax
push 0
push 0
lea ecx, [ebp - 0x354]
push ecx
mov edx, dword [ebp - 0x338]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push 0x20019
push 1
push 0
push 1
lea eax, [ebp - 0x354]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0xffffffff
je 0x10018b9f
mov dword [ebp - 0x35c], 0x100
lea edx, [ebp - 0x35c]
push edx
lea eax, [ebp - 0x308]
push eax
push 0
push 0
push str.PortName
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x358]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x314]
push eax
lea ecx, [ebp - 0x30c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10018e92
mov edx, dword [ebp - 0x318]
add edx, 1
mov dword [ebp - 0x318], edx
jmp 0x10018c34
mov dword [ebp - 0x318], 0
mov byte [ebp - 0x314], 0
mov ecx, dword [ebp + 8]
call fcn.100190b6
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x338]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov dword [ebp - 0x338], 0xffffffff
push 0x12
push 0
push 0
mov ecx, dword [ebp - 0x310]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 0x338], eax
push 0x1c
push 0
lea edx, [ebp - 0x334]
push edx
call fcn.10029860
add esp, 0xc
mov dword [ebp - 0x334], 0x1c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
je 0x10018c4a
cmp dword [ebp - 0x338], 0xffffffff
jne 0x10018a69
cmp dword [ebp - 0x338], 0xffffffff
je 0x10018c6a
mov ecx, dword [ebp - 0x338]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov dword [ebp - 0x338], 0xffffffff
mov edx, dword [ebp + 8]
cmp dword [edx + 0x40], 0
je 0x10018c8b
push str.HoundThreadProc_stopped_
push 3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
mov edx, dword [eax]
call dword [edx + 0x14]
xor eax, eax
mov esp, ebp
pop ebp
ret 4