Function at 0x1001ec20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100613eb
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x10079040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0xec], 0
movq qword [ebp - 0xf4], xmm0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
push 0x12
push 0
push 0
push 0x100643e0
mov dword [ebp - 4], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001ed10
mov edx, dword [ebp - 0xf0]
xor al, al
mov ecx, dword [ebp - 0xf4]
mov byte [ebp - 0x141], al
test ecx, ecx
je 0x1001f0ec
push ecx
call fcn.10014dc0
mov ecx, dword [ebp - 0xec]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0xf4]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1001f0dc
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f109
jmp 0x1001f0dc
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x1c
push eax
push 0
push 0x100643e0
push 0
push esi
mov dword [ebp - 0xf8], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1001ef6e
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x1c
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0
lea eax, [ebp - 0x13c]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push dword [ebp - 0x140]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1001ef41
lea eax, [ebp - 0x120]
mov dword [edi], 5
push eax
push 0
push dword [ebp - 0x140]
lea eax, [ebp - 0x13c]
push edi
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x1001ef41
push 0
push dword [ebp - 0x10c]
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
test eax, eax
jne 0x1001ef41
push eax
push 0xc8
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xfc]
call dword [sym.imp.SETUPAPI.dll_CM_Get_Device_IDA]
test eax, eax
jne 0x1001ef41
push 1
push 1
push eax
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
mov byte [ebp - 0x12], al
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x120]
push 1
push eax
push esi
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x100], 0xf
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
je 0x1001ef41
lea ecx, [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x104]
push ecx
push 0
push str.PortName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001ef2e
xorps xmm0, xmm0
mov dword [ebp - 0x150], eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14c], eax
movups xmmword [ebp - 0x160], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ee86
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.10006da0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xf0]
cmp eax, dword [ebp - 0xec]
je 0x1001eedd
movups xmm0, xmmword [ebp - 0x160]
mov ecx, 0xf
mov byte [ebp - 0x160], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x150]
movq qword [eax + 0x10], xmm0
add dword [ebp - 0xf0], 0x18
jmp 0x1001eef6
lea ecx, [ebp - 0x160]
push ecx
push eax
lea ecx, [ebp - 0xf4]
call fcn.100159d0
mov ecx, dword [ebp - 0x14c]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x1001ef2e
mov edx, dword [ebp - 0x160]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001ef24
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f109
push ecx
push edx
call fcn.100337ea
add esp, 8
push dword [ebp - 0x148]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xf8]
mov eax, ecx
inc ecx
mov dword [ebp - 0xf8], ecx
lea ecx, [ebp - 0x13c]
push ecx
push eax
push 0x100643e0
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x1001ed50
test esi, esi
je 0x1001ef79
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push dword [ebp - 0xf0]
lea edx, [ebp + 8]
mov dword [ebp - 0xf8], 0
push dword [ebp - 0xf4]
lea ecx, [ebp - 0xf8]
call fcn.1001f980
mov edx, dword [ebp - 0xf0]
add esp, 8
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x140], edx
cmp eax, edx
je 0x1001eca5
lea ecx, [eax + 0x18]
cmp ecx, edx
je 0x1001f054
lea esi, [eax + 0x2c]
lea eax, [esi + 0x18]
cmp esi, eax
je 0x1001f03e
mov ecx, dword [esi - 0x18]
cmp ecx, 0xf
jbe 0x1001f009
mov eax, dword [esi - 0x2c]
inc ecx
cmp ecx, 0x1000
jb 0x1001eff9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f109
mov eax, edx
push ecx
push eax
call fcn.100337ea
mov edx, dword [ebp - 0x140]
add esp, 8
mov dword [esi - 0x1c], 0
mov dword [esi - 0x18], 0xf
mov byte [esi - 0x2c], 0
movups xmm0, xmmword [esi - 0x14]
movups xmmword [esi - 0x2c], xmm0
movq xmm0, qword [esi - 4]
movq qword [esi - 0x1c], xmm0
mov dword [esi - 4], 0
mov dword [esi], 0xf
mov byte [esi - 0x14], 0
add esi, 0x18
lea eax, [esi - 0x14]
cmp eax, edx
jne 0x1001efc8
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0x140], edx
mov ecx, dword [edx - 4]
cmp ecx, 0xf
jbe 0x1001f08e
mov eax, dword [edx - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x1001f07e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001f109
mov eax, edx
push ecx
push eax
call fcn.100337ea
mov edx, dword [ebp - 0x140]
add esp, 8
mov dword [edx - 8], 0
lea ecx, [ebp - 0x148]
mov dword [edx - 4], 0xf
mov byte [edx - 0x18], 0
lea edx, [ebp + 8]
mov eax, dword [ebp - 0xf0]
sub eax, 0x18
push eax
push dword [ebp - 0xf4]
mov dword [ebp - 0xf0], eax
call fcn.1001f980
mov edx, dword [ebp - 0xf0]
add esp, 8
cmp dword [eax], edx
je 0x1001eca5
mov al, 1
jmp 0x1001eca7
push ecx
push esi
call fcn.100337ea
mov al, byte [ebp - 0x141]
add esp, 8
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.10033290
mov esp, ebp
pop ebp
ret 4
call fcn.1004280a
int3