Function at 0x10007ea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017dd67
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x101e4e54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x238], esi
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x234], edi
call fcn.10009150
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], eax
mov eax, dword [edi]
mov dword [edi + 4], eax
call fcn.100198f7
mov ecx, eax
test ecx, ecx
je 0x100082c5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x214], eax
mov eax, str.HardwareDeviceMapSerialComm
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x214]
test eax, 0xffff0000
jne 0x10007f3a
movzx eax, ax
push eax
call fcn.1000a150
jmp 0x10007f46
push 0x1d
push str.HardwareDeviceMapSerialComm
call fcn.1000a4d0
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x214]
push eax
push 0x20019
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
or esi, 0xffffffff
test eax, eax
jne 0x1000826b
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x21c], 0x100
push eax
push 0
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x100
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x1000825d
nop dword [eax + eax]
call fcn.100198f7
mov ecx, eax
test ecx, ecx
je 0x100082c5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 2
test eax, 0xffff0000
jne 0x10008011
movzx eax, ax
lea ecx, [ebp - 0x218]
push eax
call fcn.1000a150
jmp 0x1000803c
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008020
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x218]
call fcn.1000a4d0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x218]
mov ecx, dword [esi - 0xc]
test ecx, ecx
js 0x10008062
cmp ecx, 0x7ffffffc
jg 0x100082cf
lea eax, [ecx + 3]
mov edx, ecx
cmp eax, ecx
jle 0x10008065
lea edx, [ecx - 3]
xor eax, eax
cmp ecx, 3
mov ecx, dword [esi - 0x10]
cmovge eax, edx
mov dword [ebp - 0x22c], eax
lea eax, [esi - 0x10]
mov dword [ebp - 0x23c], eax
test ecx, ecx
je 0x1000808e
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
test eax, eax
jne 0x1000809c
call fcn.100198f7
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
push eax
push dword [ebp - 0x22c]
add esi, 3
lea ecx, [ebp - 0x230]
push esi
call fcn.100095b0
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x230]
push esi
call fcn.1015bd0b
mov edx, dword [ebp - 0x234]
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, dword [edx + 4]
cmp ecx, dword [edx + 8]
je 0x100080e1
mov dword [ecx], eax
add dword [edx + 4], 4
jmp 0x100080f0
lea eax, [ebp - 0x22c]
push eax
push ecx
mov ecx, edx
call fcn.10008e40
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000810c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x244], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x240], 0xf
mov byte [ebp - 0x254], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008140
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.1000a9a0
mov esi, dword [ebp - 0x238]
mov byte [ebp - 4], 5
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x10008197
movups xmm0, xmmword [ebp - 0x254]
mov edx, 0xf
mov byte [ebp - 0x254], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x244]
movq qword [eax + 0x10], xmm0
add dword [esi + 4], 0x18
jmp 0x100081ac
lea ecx, [ebp - 0x254]
push ecx
push eax
mov ecx, esi
call fcn.10008fa0
mov edx, dword [ebp - 0x240]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x100081e4
mov ecx, dword [ebp - 0x254]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100081da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100082d9
push edx
push ecx
call fcn.1015158f
add esp, 8
inc dword [ebp - 0x228]
or esi, 0xffffffff
mov edx, dword [ebp - 0x23c]
mov eax, esi
mov byte [ebp - 4], 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000820b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x100
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x220], 0x100
push eax
push 0
push 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x228]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x10007fd0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000828c
push str.Failed_to_open_registry_key.
push 0x89c
push str.CDetector::EnumerateComPortNames
push 4
push 0
push dword [0x101ee06c]
call fcn.1000cdf0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x100082a8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015155e
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000a750
push 0x80070216
call fcn.1000a750
call fcn.1015862f
int3