Function at 0x401420
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
mov eax, 0x827c
call fcn.00401c00
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
xor ebp, ebp
mov eax, 4
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x10], ebp
cmp ebp, 9
ja case.default.0x401462
jmp dword [ebp*4 + 0x401900]
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsMI0343
jmp 0x4014dd
lea ecx, [esp + 0x18c]
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsMI0360
push ecx
jmp 0x4014e5
lea edx, [esp + 0x18c]
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsTAS5130
push edx
jmp 0x4014e5
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsTAS5110
jmp 0x4014dd
lea ecx, [esp + 0x18c]
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsPAS202
push ecx
jmp 0x4014e5
lea edx, [esp + 0x18c]
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsPAS106
push edx
jmp 0x4014e5
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsHYNIX7131
jmp 0x4014dd
lea ecx, [esp + 0x18c]
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsHYNIX7131R
push ecx
jmp 0x4014e5
lea edx, [esp + 0x18c]
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsOV7630
push edx
jmp 0x4014e5
push str.SYSTEMSonixPCCAM_snpstd2DefaultSettingsCISVF10
lea eax, [esp + 0x190]
push eax
call esi
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18c]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne case.default.0x401462
xor edi, edi
lea eax, [esp + 0x74]
push edi
push str.VP_02d
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x54]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x50]
push ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x80]
push edi
push ecx
push edx
call ebx
test eax, eax
jne 0x4015ba
mov eax, dword [esp + 0x14]
shl eax, 7
lea ebp, [esp + eax + 0x28c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
inc edx
mov ecx, ebp
mov dword [esp + 0x14], edx
mov edx, eax
and edx, 0xffff
add ebp, 0x80
shr eax, 0x10
push edx
push eax
push str.USBVID__04XPID__04X
push ecx
call esi
add esp, 0x10
inc edi
lea eax, [esp + 0x74]
push edi
push str.VP_02d
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x54]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x50]
push ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x80]
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x401554
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
cmp ebp, 0xa
mov dword [esp + 0x10], ebp
jl 0x401459
mov al, 0x49
push 4
mov byte [esp + 0x24], al
mov byte [esp + 0x2f], al
push 0
mov al, 0x6e
push 0
push 0x402380
mov byte [esp + 0x31], 0x6d
mov byte [esp + 0x32], 0x61
mov byte [esp + 0x33], 0x67
mov byte [esp + 0x34], 0x65
mov byte [esp + 0x35], 0
mov byte [esp + 0x2c], 0x55
mov byte [esp + 0x2d], 0x53
mov byte [esp + 0x2e], 0x42
mov byte [esp + 0x2f], 0
mov byte [esp + 0x38], 0x4d
mov byte [esp + 0x39], 0x45
mov byte [esp + 0x3a], 0x44
mov byte [esp + 0x3c], 0x41
mov byte [esp + 0x3d], 0
mov byte [esp + 0x40], 0x55
mov byte [esp + 0x41], al
mov byte [esp + 0x42], 0x6b
mov byte [esp + 0x43], al
mov byte [esp + 0x44], 0x6f
mov byte [esp + 0x45], 0x77
mov byte [esp + 0x46], al
mov byte [esp + 0x47], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4017e6
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], 0x1c
push ecx
push 0
push ebp
mov dword [esp + 0x54], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4017df
lea edx, [esp + 0x10]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push edx
lea eax, [esp + 0x88]
push 0x104
lea ecx, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x68]
push 7
push edx
push ebp
mov dword [esp + 0x2c], 0
call edi
test eax, eax
je 0x4017c1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4017c1
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea eax, [esp + 0x84]
lea ecx, [esp + 0x20]
push eax
push ecx
call esi
add esp, 8
test eax, eax
je 0x401731
lea edx, [esp + 0x84]
lea eax, [esp + 0x1c]
push edx
push eax
call esi
add esp, 8
test eax, eax
je 0x401731
lea ecx, [esp + 0x84]
lea edx, [esp + 0x28]
push ecx
push edx
call esi
add esp, 8
test eax, eax
je 0x401731
lea eax, [esp + 0x84]
lea ecx, [esp + 0x30]
push eax
push ecx
call esi
add esp, 8
test eax, eax
jne 0x4017c1
lea edx, [esp + 0x10]
lea eax, [esp + 0x84]
push edx
push 0x104
lea ecx, [esp + 0x4c]
push eax
push ecx
lea edx, [esp + 0x68]
push 1
push edx
push ebp
call edi
test eax, eax
je 0x4017c1
mov al, byte [esp + 0x84]
lea esi, [esp + 0x84]
test al, al
je 0x4017c1
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4017a9
lea edi, [esp + 0x28c]
mov ebx, eax
push edi
push esi
call dword [sym.imp.MSVCRT.dll__strupr]
add esp, 4
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp eax, esi
jne 0x4017a0
lea eax, [esp + 0x58]
push eax
push ebp
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
add edi, 0x80
dec ebx
jne 0x401779
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x401768
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x58]
inc eax
push ecx
push eax
push ebp
mov dword [esp + 0x54], eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x40168c
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0
push 0
mov al, 0x4e
push 0
push 0x402390
mov byte [esp + 0x48], 0x55
mov byte [esp + 0x49], 0x53
mov byte [esp + 0x4a], 0x42
mov byte [esp + 0x4b], 0x5c
mov byte [esp + 0x4c], 0x55
mov byte [esp + 0x4d], al
mov byte [esp + 0x4e], 0x4b
mov byte [esp + 0x4f], al
mov byte [esp + 0x50], 0x4f
mov byte [esp + 0x51], 0x57
mov byte [esp + 0x52], al
mov byte [esp + 0x53], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4018f5
lea edx, [esp + 0x58]
xor ebx, ebx
push edx
push ebx
push ebp
mov dword [esp + 0x64], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x4018ee
lea eax, [esp + 0x44]
lea ecx, [esp + 0x84]
push eax
push 0x104
lea edx, [esp + 0x50]
push ecx
push edx
lea eax, [esp + 0x68]
push 1
push eax
push ebp
mov dword [esp + 0x60], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
je 0x4018d8
mov al, byte [esp + 0x84]
lea esi, [esp + 0x84]
test al, al
je 0x4018d8
lea ecx, [esp + 0x38]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4018c0
lea edx, [esp + 0x58]
push edx
push ebp
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
test al, al
jne 0x40189f
lea eax, [esp + 0x58]
inc ebx
push eax
push ebx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x40185c
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x827c
ret