Function at 0x10009ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029e67
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100370b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [ebp - 0x228]
call fcn.10001160
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.1000a890
test eax, eax
je 0x10009f17
mov edi, 1
jmp 0x1000a6f6
xor eax, eax
xor edx, edx
push 0x12
push eax
push eax
xor edi, edi
mov dword [ebp - 0x208], edx
push 0x1002d0a8
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x200], eax
mov dword [ebp - 0x20c], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
mov dword [ebp - 0x204], esi
cmp esi, 0xffffffff
je 0x1000a6f6
lea eax, [ebp - 0x178]
mov dword [ebp - 0x178], 0x1c
push eax
push 0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1000a5fd
nop dword [eax]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
lea eax, [ebp - 0x178]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
push dword [ebp - 0x20c]
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1000a5fd
push 0
push dword [ebp - 0x20c]
lea eax, [ebp - 0x178]
push edi
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
test eax, eax
je 0x1000a5f6
lea ecx, [ebp - 0x174]
mov edx, 0x1002ddd8
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1000a092
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10009fe0
mov edx, dword [ebp - 0x204]
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x1fc], 0
push eax
lea eax, [ebp - 0x178]
mov dword [ebp - 0x1f8], 0
push eax
mov ecx, ebx
call fcn.10009e20
mov esi, dword [ebp - 0x1fc]
test esi, esi
je 0x1000a092
mov edx, ebx
mov ecx, esi
sub edx, esi
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx + 0x27], al
test al, al
jne 0x1000a040
push esi
call dword [sym.imp.api_ms_win_core_stringansi_l1_1_0.dll_CharUpperA]
push str.AVANCE
push esi
call fcn.100152e0
add esp, 8
test eax, eax
jne 0x1000a078
push str.REALTEK
push esi
call fcn.100152e0
add esp, 8
test eax, eax
je 0x1000a082
mov dword [ebp - 0x200], 1
push esi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
cmp dword [ebp - 0x200], 0
jne 0x1000a0c8
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
mov esi, dword [ebp - 0x1f4]
lea eax, [ebp - 0x178]
inc esi
push eax
push esi
mov dword [ebp - 0x1f4], esi
mov esi, dword [ebp - 0x204]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x10009f80
jmp 0x1000a5fd
mov esi, dword [ebp - 0x204]
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0x1f4]
push eax
push esi
mov dword [ebp - 0x210], edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
lea eax, [ebp - 0x144]
mov dword [ebp - 0x1f4], 0
push eax
push 0
push 0x1002d0a8
lea eax, [ebp - 0x178]
mov dword [ebp - 0x144], 0x1c
push eax
push esi
mov dword [ebp - 0x1f8], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
je 0x1000a5fd
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x1f4]
push eax
push 0
push 0
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push dword [ebp - 0x1f4]
push 0x40
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x208], edi
test edi, edi
je 0x1000a5b3
push 0
push 0
mov dword [edi], 5
lea eax, [ebp - 0x144]
push dword [ebp - 0x1f4]
push edi
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
test eax, eax
je 0x1000a5e5
lea esi, [edi + 4]
mov dword [ebp - 0x14c], 0
mov ecx, esi
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a1b3
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x15c]
call fcn.1000b6a0
xor esi, esi
mov dword [ebp - 0x21c], 0
xor edi, edi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], edi
push 0x2f
push str.SystemCurrentControlSetControlDeviceClasses_
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 2
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.1000b6a0
movzx eax, byte [ebp - 0x131]
push eax
movzx eax, byte [ebp - 0x132]
push eax
movzx eax, byte [ebp - 0x133]
push eax
movzx eax, byte [ebp - 0x134]
push eax
movzx eax, byte [ebp - 0x135]
push eax
movzx eax, byte [ebp - 0x136]
push eax
movzx eax, byte [ebp - 0x137]
push eax
movzx eax, byte [ebp - 0x138]
push eax
movzx eax, word [ebp - 0x13a]
push eax
movzx eax, word [ebp - 0x13c]
push eax
push dword [ebp - 0x140]
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 3
push 0x1002d0c8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x90]
add esp, 0x34
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a288
sub ecx, edx
lea eax, [ebp - 0x90]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.1000b540
cmp dword [ebp - 0x148], 0x10
lea eax, [ebp - 0x15c]
push 0x1002d170
cmovae eax, dword [ebp - 0x15c]
push eax
call fcn.1001bb4c
add esp, 8
mov dword [ebp - 0x200], eax
test eax, eax
je 0x1000a319
cmp edi, esi
je 0x1000a2e1
mov dword [esi], eax
add esi, 4
mov dword [ebp - 0x218], esi
jmp 0x1000a300
lea eax, [ebp - 0x200]
push eax
push esi
lea ecx, [ebp - 0x21c]
call fcn.100093d0
mov edi, dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
push 0x1002d170
push 0
call fcn.1001bb4c
add esp, 8
mov dword [ebp - 0x200], eax
test eax, eax
jne 0x1000a2d0
mov edi, dword [ebp - 0x21c]
sub esi, edi
sar esi, 2
cmp esi, 3
jne 0x1000a4f0
push 5
push 0x1002d174
lea ecx, [ebp - 0x128]
call fcn.1000b540
mov edx, dword [edi + 4]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a347
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.1000b540
push 2
push 0x1002d17c
lea ecx, [ebp - 0x128]
call fcn.1000b540
mov edx, dword [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a377
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x128]
call fcn.1000b540
push 0x13
push str.Device_Parameters_
lea ecx, [ebp - 0x128]
call fcn.1000b540
cmp dword [ebp - 0x114], 0x10
lea ecx, [ebp - 0x1fc]
lea eax, [ebp - 0x128]
cmovae eax, dword [ebp - 0x128]
push ecx
push eax
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegCreateKeyA]
test eax, eax
jne 0x1000a4f0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 1
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x220], 0x80
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push str.FriendlyName
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x1000a4e4
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1dc], 0xf
mov byte [ebp - 0x1f0], al
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c4], 0xf
mov byte [ebp - 0x1d8], al
mov dword [ebp - 0x1bc], eax
mov esi, dword [ebp - 0x208]
mov ecx, ebx
mov dword [ebp - 0x1a8], eax
add esi, 4
lea eax, [ebp - 0x1f0]
mov byte [ebp - 4], 4
push eax
mov edx, esi
call fcn.10009d30
test eax, eax
je 0x1000a4d9
test byte [ebp - 0x1bc], 0x40
jne 0x1000a4d9
push esi
lea ecx, [ebp - 0x1f0]
call fcn.10009d00
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a490
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x1d8]
call fcn.1000b6a0
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x1b8], 0
lea ecx, [ebx + 0x1c]
mov dword [ebp - 0x1b0], 0
push eax
mov dword [ebp - 0x1b4], 0
call fcn.1000b7d0
lea ecx, [ebp - 0x1f0]
call fcn.10009c70
push dword [ebp - 0x1fc]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edx, dword [ebp - 0x114]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x1000a52e
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000a524
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a739
push edx
push ecx
call fcn.10013cbf
add esp, 8
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0xf
mov byte [ebp - 0x128], 0
call fcn.10009a70
mov edx, dword [ebp - 0x148]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1000a592
mov ecx, dword [ebp - 0x15c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000a588
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a739
push edx
push ecx
call fcn.10013cbf
add esp, 8
mov esi, dword [ebp - 0x204]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0xf
mov byte [ebp - 0x15c], 0
mov eax, dword [ebp - 0x1f8]
lea ecx, [ebp - 0x144]
push ecx
inc eax
push eax
mov dword [ebp - 0x1f8], eax
lea eax, [ebp - 0x178]
push 0x1002d0a8
push eax
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x1000a130
jmp 0x1000a5fd
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
xor edx, edx
mov dword [ebp - 0x208], edx
jmp 0x1000a5fd
push edi
call dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebx + 0x20]
mov eax, 0x88888889
sub ecx, dword [ebx + 0x1c]
imul ecx
add edx, ecx
mov ecx, 0
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
setne cl
xor edi, edi
mov dword [ebp - 0x1f8], ecx
test eax, eax
je 0x1000a6d0
xor esi, esi
mov eax, dword [ebx + 0x1c]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x1000a644
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_core_stringansi_l1_1_0.dll_CharUpperA]
mov eax, dword [ebx + 0x1c]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x1000a658
mov eax, dword [eax]
push 0x1002d224
push eax
call fcn.100152e0
add esp, 8
test eax, eax
mov eax, dword [ebx + 0x1c]
jne 0x1000a68c
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x1000a677
mov eax, dword [eax]
push 0x1002d23c
push eax
call fcn.100152e0
add esp, 8
test eax, eax
je 0x1000a6ab
mov eax, dword [ebx + 0x1c]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x1000a696
mov eax, dword [eax]
push str.REARLINEOUTWAVE
push eax
call fcn.100152e0
add esp, 8
test eax, eax
je 0x1000a6ab
mov dword [ebx + 0x18], edi
mov ecx, dword [ebx + 0x20]
mov eax, 0x88888889
sub ecx, dword [ebx + 0x1c]
inc edi
imul ecx
add esi, 0x78
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1000a637
mov eax, dword [ebp - 0x208]
mov ebx, dword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
test eax, eax
je 0x1000a6e3
push eax
call ebx
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1000a6f0
push eax
call ebx
mov edi, dword [ebp - 0x1f8]
mov esi, dword [ebp - 0x228]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000a71b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100142a9
mov esp, ebp
pop ebp
ret
call fcn.10018333
int3