Function at 0x1001e7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100613a6
mov eax, dword fs:[0]
push eax
sub esp, 0x184
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
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameA]
mov dword [ebp - 0x178], eax
xor eax, eax
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push str.Ports
call esi
push ecx
push dword [ebp - 0x114]
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x120]
movq qword [ebp - 0x120], xmm0
call fcn.1001f170
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x120]
push str.Ports
call esi
push 2
push 0
push 0
push dword [ebp - 0x120]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x16c], edi
nop word [eax + eax]
mov eax, ecx
mov dword [ebp - 0x15c], 0x1c
inc ecx
mov dword [ebp - 0x170], ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov esi, eax
mov dword [ebp - 0x168], esi
test esi, esi
je 0x1001ebb1
push 1
push 1
push 0
push 1
lea eax, [ebp - 0x15c]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov ecx, dword [ebp - 0x170]
cmp eax, 0xffffffff
je 0x1001e8b0
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x160], 0x100
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x124], 0
push ecx
lea ecx, [ebp - 0x124]
push ecx
push 0
push str.PortName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x13c]
dec eax
mov dword [ebp - 0x12c], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x128], 0
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x13c], xmm0
call fcn.10006da0
mov byte [ebp - 4], 1
lea edi, [ebp - 0x13c]
cmp dword [ebp - 0x128], 0xf
mov edx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x12c]
cmova edi, edx
mov dword [ebp - 0x164], edx
cmp eax, 3
jb 0x1001e9fe
lea esi, [eax + edi]
lea eax, [esi - 2]
sub eax, edi
push eax
push 0x43
push edi
call fcn.100380f0
add esp, 0xc
test eax, eax
je 0x1001e9f2
movzx ecx, byte [eax]
cmp cl, 0x43
jne 0x1001e9d3
movzx ecx, byte [eax + 1]
cmp cl, 0x4f
jne 0x1001e9d3
movzx ecx, byte [eax + 2]
cmp cl, 0x4d
jne 0x1001e9d3
xor ecx, ecx
jmp 0x1001e9d8
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x1001ea51
inc eax
lea ecx, [esi - 2]
sub ecx, eax
push ecx
push 0x43
push eax
call fcn.100380f0
add esp, 0xc
test eax, eax
jne 0x1001e9b5
mov edx, dword [ebp - 0x164]
mov esi, dword [ebp - 0x168]
mov edi, dword [ebp - 0x16c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x128]
cmp eax, 0xf
jbe 0x1001ea3e
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001ea34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ec14
push ecx
push edx
call fcn.100337ea
add esp, 8
test esi, esi
je 0x1001ebb1
mov ecx, dword [ebp - 0x170]
jmp 0x1001e8b0
sub eax, edi
mov edi, dword [ebp - 0x16c]
cmp eax, 0xffffffff
je 0x1001eb74
push 0
push 0x100
push 0x1007ba20
lea eax, [ebp - 0x140]
push eax
push 1
lea eax, [ebp - 0x15c]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x1001eb85
push str.VID_11FA
push 0x1007ba20
call fcn.10037380
add esp, 8
test eax, eax
je 0x1001eb74
xorps xmm0, xmm0
mov dword [ebp - 0x180], 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x17c], 0
movups xmmword [ebp - 0x190], xmm0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001ead0
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.10006da0
mov edx, dword [ebp - 0x178]
mov byte [ebp - 4], 2
mov eax, dword [edx + 4]
cmp eax, dword [edx + 8]
je 0x1001eb27
movups xmm0, xmmword [ebp - 0x190]
mov ecx, 0xf
mov byte [ebp - 0x190], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x180]
movq qword [eax + 0x10], xmm0
add dword [edx + 4], 0x18
jmp 0x1001eb3c
lea ecx, [ebp - 0x190]
push ecx
push eax
mov ecx, edx
call fcn.100159d0
mov ecx, dword [ebp - 0x17c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x1001eb74
mov edx, dword [ebp - 0x190]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001eb6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ec14
push ecx
push edx
call fcn.100337ea
add esp, 8
mov edx, dword [ebp - 0x164]
mov esi, dword [ebp - 0x168]
jmp 0x1001ea04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CPerformDFU::DFU_GetSerialDeviceList
push str._s_error___ld_n
mov dword [ebp - 0x174], eax
call fcn.100045b0
mov edx, dword [ebp - 0x164]
add esp, 0xc
xor esi, esi
jmp 0x1001ea04
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [ebp - 0x120]
test edx, edx
je 0x1001ebf1
mov ecx, dword [ebp - 0x118]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x1001ebe7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ec14
push ecx
push edx
call fcn.100337ea
add esp, 8
mov eax, dword [ebp - 0x174]
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 0xc
call fcn.1004280a
int3