Function at 0x423d80
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 0x4c5438
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x508
mov eax, dword [0x4ff12c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x518], ecx
push 0x12
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4c8]
movups xmm0, xmmword [0x4d96c0]
xor esi, esi
mov dword [ebp - 0x504], 0
push esi
push esi
push eax
movups xmmword [ebp - 0x4c8], xmm0
mov dword [ebp - 0x4e4], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
mov dword [ebp - 0x510], edi
cmp edi, 0xffffffff
je 0x4243bf
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x514], 1
push eax
push esi
lea eax, [ebp - 0x4c8]
push eax
push esi
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x4243b8
nop dword [eax]
push 0
lea eax, [ebp - 0x504]
push eax
push 0
push 0
lea eax, [ebp - 0x4e4]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
jne 0x4243ab
test esi, esi
je 0x423e70
push esi
call fcn.004a9a64
add esp, 4
push dword [ebp - 0x504]
call fcn.004a9e83
mov esi, eax
add esp, 4
mov dword [ebp - 0x50c], esi
test esi, esi
je 0x4243b8
lea eax, [ebp - 0x500]
mov dword [esi], 6
push eax
lea eax, [ebp - 0x504]
mov dword [ebp - 0x500], 0x1c
push eax
push dword [ebp - 0x504]
lea eax, [ebp - 0x4e4]
push esi
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x4243ab
push 0
push 0x100
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x500]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x42437c
push 0x20019
push 1
push 0
push 1
lea eax, [ebp - 0x500]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x423f3c
lea eax, [ebp - 0x488]
mov dword [ebp - 0x488], 0xff
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.PortName
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x470], 7
mov word [ebp - 0x484], ax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423f66
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x484]
call fcn.00406ee0
xorps xmm0, xmm0
mov dword [ebp - 0x41c], 0
push 0x5f
lea edx, [ebp - 0x484]
movq qword [ebp - 0x424], xmm0
lea ecx, [ebp - 0x424]
call fcn.00423580
add esp, 4
mov byte [ebp - 4], 2
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x420]
mov esi, dword [ebp - 0x424]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jae 0x424033
lea ecx, [ebp - 0x424]
call fcn.00408310
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x470]
cmp edx, 8
jb 0x424376
mov ecx, dword [ebp - 0x484]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424024
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push edx
push ecx
call fcn.0048ab28
add esp, 8
jmp 0x424376
lea ecx, [eax - 2]
cmp eax, ecx
jbe 0x4246ff
lea eax, [ecx + ecx*2]
lea eax, [esi + eax*8]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00405ba0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x490]
cmp eax, 0xc
jae 0x4240ff
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48c]
cmp edx, 8
jb 0x4240a7
mov ecx, dword [ebp - 0x4a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42409d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push edx
push ecx
call fcn.0048ab28
add esp, 8
lea ecx, [ebp - 0x424]
call fcn.00408310
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x470]
cmp edx, 8
jb 0x424376
mov ecx, dword [ebp - 0x484]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4240f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push edx
push ecx
call fcn.0048ab28
add esp, 8
jmp 0x424376
lea ecx, [eax - 0xc]
mov dword [ebp - 0x444], 0
xor edx, edx
mov dword [ebp - 0x440], 7
mov word [ebp - 0x454], dx
cmp eax, ecx
jb 0x4246fa
cmp dword [ebp - 0x48c], 8
lea eax, [ebp - 0x4a0]
push 0xc
cmovae eax, dword [ebp - 0x4a0]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x454]
call fcn.00406ee0
lea edx, [ebp - 0x454]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.0041aef0
lea edx, [ebx + 8]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x46c]
call fcn.0041aef0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x46c]
cmp dword [ebp - 0x458], 8
lea ecx, [ebp - 0x43c]
mov edi, dword [ebp - 0x46c]
push dword [ebp - 0x45c]
mov esi, dword [ebp - 0x43c]
cmovae eax, edi
cmp dword [ebp - 0x428], 8
mov edx, dword [ebp - 0x42c]
cmovae ecx, esi
push eax
call fcn.0041bd00
add esp, 8
test eax, eax
je 0x424403
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x458]
cmp eax, 8
jb 0x424204
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x4241f4
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push ecx
push edi
call fcn.0048ab28
mov esi, dword [ebp - 0x43c]
add esp, 8
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x46c], ax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 7
cmp eax, 8
jb 0x42425f
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x424255
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push ecx
push esi
call fcn.0048ab28
add esp, 8
xor eax, eax
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x440]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
cmp edx, 8
jb 0x4242c0
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4242b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push edx
push ecx
call fcn.0048ab28
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48c]
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 7
mov word [ebp - 0x454], ax
cmp edx, 8
jb 0x424321
mov ecx, dword [ebp - 0x4a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424317
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push edx
push ecx
call fcn.0048ab28
add esp, 8
lea ecx, [ebp - 0x424]
call fcn.00408310
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x470]
cmp edx, 8
jb 0x424370
mov ecx, dword [ebp - 0x484]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424366
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov edi, dword [ebp - 0x510]
mov esi, dword [ebp - 0x50c]
mov ecx, dword [ebp - 0x514]
mov eax, ecx
inc ecx
mov dword [ebp - 0x514], ecx
lea ecx, [ebp - 0x4e4]
push ecx
push eax
lea eax, [ebp - 0x4c8]
push eax
push 0
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x423e40
test esi, esi
je 0x4243b8
push esi
call fcn.004a9a64
add esp, 4
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov byte [ebp - 0x505], 0
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x4246b3
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4246a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246d7
jmp 0x4246a9
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x424410
mov ecx, dword [ebp - 0x518]
lea eax, [ebp - 0x218]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00406ee0
xor eax, eax
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x4a4], 7
mov word [ebp - 0x4b8], ax
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 7
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424460
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00406ee0
push 0x3a
lea ecx, [ebp - 0x4b8]
call fcn.00420820
sub esp, 0x18
lea eax, [ebp - 0x4b8]
mov ecx, esp
push eax
call fcn.00405ba0
call fcn.004259f0
push dword [ebp - 0x50c]
call fcn.004a9a64
add esp, 0x1c
push dword [ebp - 0x510]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [ebp - 0x4a4]
cmp edx, 8
jb 0x4244ff
mov ecx, dword [ebp - 0x4b8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4244f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246dc
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov edx, dword [ebp - 0x458]
cmp edx, 8
jb 0x42453f
mov ecx, dword [ebp - 0x46c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424535
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246e1
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov edx, dword [ebp - 0x428]
xor eax, eax
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 7
mov word [ebp - 0x46c], ax
cmp edx, 8
jb 0x42459c
mov ecx, dword [ebp - 0x43c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424592
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246e6
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov edx, dword [ebp - 0x440]
xor eax, eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
cmp edx, 8
jb 0x4245f9
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4245ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246eb
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov edx, dword [ebp - 0x48c]
xor eax, eax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 7
mov word [ebp - 0x454], ax
cmp edx, 8
jb 0x424656
mov ecx, dword [ebp - 0x4a0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42464c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246f0
push edx
push ecx
call fcn.0048ab28
add esp, 8
lea ecx, [ebp - 0x424]
call fcn.00408310
mov edx, dword [ebp - 0x470]
cmp edx, 8
jb 0x42469d
mov ecx, dword [ebp - 0x484]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x424693
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246f5
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov byte [ebp - 0x505], 1
jmp 0x4243c6
push edx
push ecx
call fcn.0048ab28
add esp, 8
mov al, byte [ebp - 0x505]
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.0048aaf4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004a6c47
call fcn.004a6c47
call fcn.004a6c47
call fcn.004a6c47
call fcn.004a6c47
call fcn.004a6c47
call fcn.004a6c47
call fcn.004205c0
call fcn.0041a5c0
int3