Function at 0x4122c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4444d8
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x4629b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 6
push 0
push 0x17
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
push eax
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov esi, eax
mov dword [ebp - 0x560], esi
cmp esi, 0xffffffff
je 0x4131cd
mov ecx, 0x46b50c
call fcn.0042b3d0
push 0x200
lea eax, [ebp - 0x450]
mov dword [ebp - 0x514], 0
xorps xmm0, xmm0
mov dword [ebp - 0x508], 0
push 0
push eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x504], 0
call fcn.0042f620
push 0x200
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.0042f620
add esp, 0x18
lea ecx, [ebp - 0x490]
call fcn.004050b0
lea eax, [ebp - 0x4e8]
mov dword [ebp - 4], 0
push eax
xor edi, edi
mov dword [ebp - 0x4e8], 0x1c
xorps xmm0, xmm0
mov dword [ebp - 0x510], edi
push edi
push esi
movlpd qword [ebp - 0x4e4], xmm0
movlpd qword [ebp - 0x4dc], xmm0
movlpd qword [ebp - 0x4d4], xmm0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
jne 0x4131a5
nop dword [eax]
push 0x1000
push 0
push 0x46e608
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x458], 0
call fcn.0042f620
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
push 0x1000
push 0x46e608
lea eax, [ebp - 0x494]
push eax
push 2
lea eax, [ebp - 0x4e8]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x413186
mov ecx, dword [ebp - 0x458]
xor eax, eax
sub ecx, 1
je 0x41245e
lea edi, [eax + 0x20]
nop dword [eax + eax]
cmp word [eax*2 + 0x46e608], 0
jne 0x412453
mov word [eax*2 + 0x46e608], di
inc eax
cmp eax, ecx
jb 0x412440
mov edi, dword [ebp - 0x510]
push 9
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
push eax
push 0x46e608
call fcn.0042bf80
add esp, 8
test eax, eax
jne 0x4124d1
push 0xa
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
push eax
push 0x46e608
call fcn.0042bf80
add esp, 8
test eax, eax
jne 0x4124d1
push 0xb
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
push eax
push 0x46e608
call fcn.0042bf80
add esp, 8
test eax, eax
je 0x413186
mov edi, dword [ebp - 0x514]
push 0x1000
push 0
inc edi
mov dword [ebp - 0x458], 0
push 0x46e608
mov dword [ebp - 0x514], edi
call fcn.0042f620
push edi
push str._u:
lea eax, [ebp - 0x20]
push 0xffffffffffffffff
push eax
call fcn.0040d470
add esp, 0x1c
lea eax, [ebp - 0x458]
push eax
push 0x1000
push 0x46e608
lea eax, [ebp - 0x4e8]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x41254f
push 0xffffffffffffffff
push 0x46e608
call fcn.00434cd6
add esp, 8
lea ecx, [ebp - 0x490]
push 0x46e608
call fcn.00405200
push 0x200
lea eax, [ebp - 0x250]
mov dword [ebp - 0x454], 0x200
push 0
push eax
call fcn.0042f620
add esp, 0xc
mov ecx, 0x469a38
push 0x46e608
push 0x1e
call fcn.0040df90
mov ecx, eax
call fcn.00409580
push eax
push 0x46a8fc
push str._s_s_s
lea eax, [ebp - 0x450]
push 0xffffffffffffffff
push eax
call fcn.0040d4b0
add esp, 0x18
lea eax, [ebp - 0x508]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x450]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x19
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x508]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x4464a0
lea ecx, [ebp - 0x4b4]
call fcn.00405090
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x594]
call fcn.00405090
push 1
push 0x4610a0
lea eax, [ebp - 0x594]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x500]
push eax
call fcn.0040c410
add esp, 0x10
lea ecx, [ebp - 0x594]
mov byte [ebp - 4], 4
call fcn.004050d0
lea ecx, [ebp - 0x500]
xor edi, edi
call fcn.00409580
push 0x1b
mov ecx, 0x469a38
mov esi, eax
call fcn.0040df90
mov ecx, eax
call fcn.00409580
push esi
push eax
push 0x46a8fc
push str._s_s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x450]
push eax
call fcn.0040d4b0
add esp, 0x18
lea eax, [ebp - 0x504]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x450]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x250]
push 0x4610a4
push eax
call fcn.0042bf80
add esp, 8
test eax, eax
je 0x412db8
xorps xmm0, xmm0
mov dword [ebp - 0x454], 0x200
push 0x200
lea eax, [ebp - 0x250]
movlpd qword [ebp - 0x40], xmm0
push edi
push eax
movlpd qword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x460], xmm0
call fcn.0042f620
add esp, 0xc
mov ecx, 0x469a38
push 0xc
call fcn.0040df90
mov ecx, eax
call fcn.00409580
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push edi
push edi
push eax
push dword [ebp - 0x504]
call esi
lea eax, [ebp - 0x250]
push 0xffffffffffffffff
push eax
call fcn.00434afd
add esp, 8
mov ecx, 0x469a38
push 0xd
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x250]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x412786
test dx, dx
je 0x412782
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x412786
add ecx, 4
add eax, 4
test dx, dx
jne 0x412760
xor eax, eax
jmp 0x41278b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412db4
push 0x200
lea eax, [ebp - 0x250]
mov dword [ebp - 0x454], 0x200
push 0
push eax
call fcn.0042f620
add esp, 0xc
mov ecx, 0x469a38
push 0xe
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x504]
call esi
lea eax, [ebp - 0x250]
push 0xffffffffffffffff
push eax
call fcn.00434afd
add esp, 8
mov ecx, 0x469a38
push 0xf
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x250]
nop dword [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x412836
test dx, dx
je 0x412832
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x412836
add ecx, 4
add eax, 4
test dx, dx
jne 0x412810
xor eax, eax
jmp 0x41283b
sbb eax, eax
or eax, 1
test eax, eax
je 0x412db4
xorps xmm0, xmm0
mov dword [ebp - 0x454], 0x10
push 0x56
mov ecx, 0x469a38
movlpd qword [ebp - 0x49c], xmm0
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x49c]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x504]
call esi
push 0x57
mov ecx, 0x469a38
mov dword [ebp - 0x454], 0x10
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x460]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x504]
call esi
mov ecx, dword [ebp - 0x498]
cmp ecx, dword [ebp - 0x45c]
jb 0x4128e8
mov eax, dword [ebp - 0x49c]
ja 0x4128dc
cmp eax, dword [ebp - 0x460]
jbe 0x4128e8
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], ecx
push 0x200
lea eax, [ebp - 0x250]
mov dword [ebp - 0x454], 0x200
push 0
push eax
call fcn.0042f620
add esp, 0xc
mov ecx, 0x469a38
push 0x38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x504]
call esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x4b4]
call fcn.00405130
mov ecx, dword [ebp - 0x460]
mov eax, ecx
mov edx, dword [ebp - 0x45c]
or eax, edx
je 0x4129c5
mov edi, 1
mov dword [0x46c208], edi
test edx, edx
jne 0x412995
cmp ecx, 0x40000000
jae 0x412995
call fcn.0042e2c0
cvtsd2ss xmm0, xmm0
sub esp, 8
mulss xmm0, dword [0x456c3c]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push str._.fMB
jmp 0x4129b7
call fcn.0042e2c0
cvtsd2ss xmm0, xmm0
sub esp, 8
mulss xmm0, dword [0x456c34]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
push str._.fGB
lea eax, [ebp - 0x50]
push 0xffffffffffffffff
push eax
call fcn.0040d490
add esp, 0x14
push 0
lea ecx, [ebp - 0x4b4]
call fcn.0040af80
cmp word [eax], 0
jne 0x412ab6
push 0x200
lea eax, [ebp - 0x250]
mov dword [ebp - 0x454], 0x200
push 0
push eax
call fcn.0042f620
add esp, 0xc
mov ecx, 0x469a38
push 0x10
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x250]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x508]
call esi
test eax, eax
jne 0x412ab6
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x4cc]
call fcn.00405090
push 2
push 0x4610a8
lea eax, [ebp - 0x4cc]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x478]
push eax
call fcn.0040c410
add esp, 0x10
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 7
call fcn.004050d0
push 0
lea ecx, [ebp - 0x478]
call fcn.0040af80
lea ecx, [ebp - 0x4b4]
cmp word [eax], 0
jne 0x412a9b
lea eax, [ebp - 0x250]
push eax
call fcn.00405130
jmp 0x412aa7
lea eax, [ebp - 0x478]
push eax
call fcn.0040df10
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 4
call fcn.004050d0
push 0
lea ecx, [ebp - 0x4b4]
call fcn.0040af80
mov ecx, edi
cmp word [eax], 0
je 0x412dba
lea ecx, [ebp - 0x478]
mov dword [ebp - 0x50c], 1
call fcn.004050b0
push 0x46109c
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 8
push eax
sub esp, 0x18
lea eax, [ebp - 0x4b4]
mov ecx, esp
push eax
call fcn.0040aeb0
call fcn.0040c7e0
add esp, 0x20
cmp edi, 1
jne 0x412c6b
lea ecx, [ebp - 0x478]
lea esi, [ebp - 0x50]
call fcn.00409580
mov cx, word [eax]
cmp cx, word [esi]
jne 0x412b4a
test cx, cx
je 0x412b46
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x412b4a
add eax, 4
add esi, 4
test cx, cx
jne 0x412b24
xor eax, eax
jmp 0x412b4f
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x20]
push eax
push 0x469acc
jne 0x412bbf
lea eax, [ebp - 0x55c]
push eax
call fcn.00404b30
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x578]
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x4cc]
mov byte [ebp - 4], 0xa
push eax
call fcn.00404a40
add esp, 0x24
push eax
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0xb
call fcn.004051f0
lea ecx, [ebp - 0x4cc]
call fcn.004050d0
lea ecx, [ebp - 0x578]
jmp 0x412cd2
lea eax, [ebp - 0x544]
push eax
call fcn.00404b30
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 0xc
push ecx
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.00404a40
push 0x469a44
push eax
lea eax, [ebp - 0x4cc]
mov byte [ebp - 4], 0xd
push eax
call fcn.00404a40
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xe
push ecx
push eax
lea eax, [ebp - 0x578]
push eax
call fcn.00404a70
push 0x469acc
push eax
lea eax, [ebp - 0x55c]
mov byte [ebp - 4], 0xf
push eax
call fcn.00404a40
add esp, 0x3c
push eax
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0x10
call fcn.004051f0
lea ecx, [ebp - 0x55c]
call fcn.004050d0
lea ecx, [ebp - 0x578]
call fcn.004050d0
lea ecx, [ebp - 0x4cc]
call fcn.004050d0
lea ecx, [ebp - 0x52c]
call fcn.004050d0
lea ecx, [ebp - 0x544]
jmp 0x412cdd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x55c]
push 0x469acc
push eax
call fcn.00404b30
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 0x11
push ecx
push eax
lea eax, [ebp - 0x52c]
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x12
push eax
call fcn.00404a40
add esp, 0x24
push eax
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0x13
call fcn.004051f0
lea ecx, [ebp - 0x544]
call fcn.004050d0
lea ecx, [ebp - 0x52c]
call fcn.004050d0
lea ecx, [ebp - 0x55c]
mov byte [ebp - 4], 8
call fcn.004050d0
cmp edi, 1
jne 0x412d44
push 0x469acc
lea eax, [ebp - 0x52c]
push 0x454410
push eax
call fcn.0040ca90
push 0x454410
push eax
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x14
push eax
call fcn.00404a70
add esp, 0x18
push eax
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0x15
call fcn.004051f0
lea ecx, [ebp - 0x544]
call fcn.004050d0
lea ecx, [ebp - 0x52c]
mov byte [ebp - 4], 8
call fcn.004050d0
test edi, edi
jne 0x412d9d
push 0x469acc
lea eax, [ebp - 0x52c]
push 0x454410
push eax
call fcn.0040ca90
push 0x454a98
push eax
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x16
push eax
call fcn.00404a70
add esp, 0x18
push eax
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0x17
call fcn.004051f0
lea ecx, [ebp - 0x544]
call fcn.004050d0
lea ecx, [ebp - 0x52c]
call fcn.004050d0
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 4
call fcn.004050d0
mov ecx, dword [ebp - 0x50c]
jmp 0x412dba
mov ecx, edi
jmp 0x412dba
xor ecx, ecx
test ecx, ecx
jne 0x413133
push 0x46e608
lea ecx, [ebp - 0x4cc]
call fcn.00405090
push 4
push 0x11
lea eax, [ebp - 0x478]
mov byte [ebp - 4], 0x18
push eax
lea ecx, [ebp - 0x4cc]
call fcn.0040c590
push 4
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0x19
xorps xmm0, xmm0
push 0x46e618
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.0040d800
add esp, 0xc
mov ecx, 0x469a38
push 0x11
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x30]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x412e46
test dx, dx
je 0x412e42
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x412e46
add ecx, 4
add eax, 4
test dx, dx
jne 0x412e20
xor eax, eax
jmp 0x412e4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412ec0
lea eax, [ebp - 0x478]
push eax
call fcn.00408cc0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x578]
push 0x469acc
push eax
call fcn.00404b30
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 0x1a
push ecx
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x1b
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x1c
push eax
call fcn.00404a40
add esp, 0x34
mov byte [ebp - 4], 0x1d
jmp 0x4130e1
push 0x12
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x30]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x412efc
test dx, dx
je 0x412ef8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x412efc
add ecx, 4
add eax, 4
test dx, dx
jne 0x412ed6
xor eax, eax
jmp 0x412f01
sbb eax, eax
or eax, 1
test eax, eax
jne 0x412f76
lea eax, [ebp - 0x478]
push eax
call fcn.00408e60
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x578]
push 0x469acc
push eax
call fcn.00404b30
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 0x1e
push ecx
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x1f
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x20
push eax
call fcn.00404a40
add esp, 0x34
mov byte [ebp - 4], 0x21
jmp 0x4130e1
push 0x13
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x30]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x412fb6
test dx, dx
je 0x412fb2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x412fb6
add ecx, 4
add eax, 4
test dx, dx
jne 0x412f90
xor eax, eax
jmp 0x412fbb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x413030
lea eax, [ebp - 0x478]
push eax
call fcn.00408ad0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x578]
push 0x469acc
push eax
call fcn.00404b30
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 0x22
push ecx
push eax
lea eax, [ebp - 0x55c]
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x23
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x24
push eax
call fcn.00404a40
add esp, 0x34
mov byte [ebp - 4], 0x25
jmp 0x4130e1
push 0x14
mov ecx, 0x469a38
call fcn.0040df90
mov ecx, eax
call fcn.00409580
lea ecx, [ebp - 0x30]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x41306c
test dx, dx
je 0x413068
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x41306c
add ecx, 4
add eax, 4
test dx, dx
jne 0x413046
xor eax, eax
jmp 0x413071
sbb eax, eax
or eax, 1
test eax, eax
jne 0x413119
push 0x15
mov ecx, 0x469a38
call fcn.0040df90
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x578]
push 0x469acc
push eax
call fcn.00404b30
push esi
push eax
lea eax, [ebp - 0x55c]
mov byte [ebp - 4], 0x26
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x52c]
mov byte [ebp - 4], 0x27
push eax
call fcn.00404a40
push 0x469acc
push eax
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0x28
push eax
call fcn.00404a40
add esp, 0x30
mov byte [ebp - 4], 0x29
push eax
lea ecx, [ebp - 0x490]
call fcn.004051f0
lea ecx, [ebp - 0x544]
call fcn.004050d0
lea ecx, [ebp - 0x52c]
call fcn.004050d0
lea ecx, [ebp - 0x55c]
call fcn.004050d0
lea ecx, [ebp - 0x578]
call fcn.004050d0
lea ecx, [ebp - 0x478]
call fcn.004050d0
lea ecx, [ebp - 0x4cc]
mov byte [ebp - 4], 4
call fcn.004050d0
mov eax, dword [ebp - 0x504]
test eax, eax
je 0x413144
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x469a14
lea ecx, [ebp - 0x490]
call fcn.004051f0
push dword [ebp - 0x508]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x500]
call fcn.004050d0
lea ecx, [ebp - 0x4b4]
mov byte [ebp - 4], 0
call fcn.004050d0
mov esi, dword [ebp - 0x560]
mov edi, dword [ebp - 0x510]
lea eax, [ebp - 0x4e8]
inc edi
push eax
push edi
push esi
mov dword [ebp - 0x510], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
je 0x4123d0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea ecx, [ebp - 0x490]
call fcn.00409580
push eax
mov ecx, 0x46b50c
call fcn.00405130
lea ecx, [ebp - 0x490]
call fcn.004050d0
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.0042d960
mov esp, ebp
pop ebp
ret