Function at 0x421890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b5ed
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x11f8
call fcn.00450cc0
mov eax, dword [0x49e074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x11ed], dl
mov edi, ecx
mov dword [ebp - 0x11f8], edi
mov dword [ebp - 0x1204], edi
mov dword [ebp - 0x1200], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 6
push 0
push 0x48f034
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x1200], 1
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
mov dword [ebp - 0x11f8], 0
mov dword [ebp - 0x11fc], esi
nop dword [eax + eax]
push 0x100
xorps xmm0, xmm0
lea eax, [ebp - 0x118]
push 0
push eax
movlpd qword [ebp - 0x11e8], xmm0
movlpd qword [ebp - 0x11e0], xmm0
movlpd qword [ebp - 0x11d8], xmm0
call fcn.004528b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x100
push 0
push eax
call fcn.004528b0
add esp, 0xc
lea eax, [ebp - 0x11b8]
push 0xfa0
push 0
push eax
call fcn.004528b0
add esp, 0xc
mov dword [ebp - 0x11ec], 0x1c
lea eax, [ebp - 0x11ec]
push eax
push dword [ebp - 0x11f8]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4219d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x421bce
lea eax, [ebp - 0x11f4]
mov dword [ebp - 0x11f4], 0
push eax
push 0xfa0
lea eax, [ebp - 0x11b8]
push eax
lea eax, [ebp - 0x11ec]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
lea eax, [ebp - 0x11b8]
push str.04E8
push eax
call fcn.0046214a
add esp, 8
test eax, eax
je 0x421bc3
lea eax, [ebp - 0x11b8]
push str.685D
push eax
call fcn.0046214a
add esp, 8
test eax, eax
je 0x421bc3
lea eax, [ebp - 0x11f4]
mov dword [ebp - 0x11f4], 0
push eax
push 0x100
lea eax, [ebp - 0x218]
push eax
push 0
push 0xd
lea eax, [ebp - 0x11ec]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push 1
push 1
push 0
push 1
lea eax, [ebp - 0x11ec]
mov dword [ebp - 0x11f4], 0x100
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
lea eax, [ebp - 0x11f4]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push str.PortName
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421ab2
sub eax, edx
je 0x421bbd
cmp byte [ebp - 0x11ed], cl
je 0x421ae6
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x118]
push eax
push str._s__t_s_n
call fcn.00414fa0
add esp, 0xc
jmp 0x421afa
lea eax, [ebp - 0x118]
push eax
push 0x48d880
call fcn.00414fa0
add esp, 8
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x11c0], 0
mov dword [ebp - 0x11bc], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x11d0], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421b20
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x11d0]
call fcn.00403590
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x421b74
movups xmm0, xmmword [ebp - 0x11d0]
mov edx, 0xf
mov byte [ebp - 0x11d0], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x11c0]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x421b89
lea ecx, [ebp - 0x11d0]
push ecx
push eax
mov ecx, edi
call fcn.004176a0
mov edx, dword [ebp - 0x11bc]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x421bbd
mov ecx, dword [ebp - 0x11d0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x421bb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421bf9
push edx
push ecx
call fcn.0045020d
add esp, 8
mov esi, dword [ebp - 0x11fc]
inc dword [ebp - 0x11f8]
jmp 0x421940
test esi, esi
je 0x421bd9
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004501c7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0045ae71
int3