Function at 0x402d70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x261c
call fcn.0043d750
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
lea eax, [ebp - 0x261c]
push esi
push edi
push eax
push 1
push 0
push str.SoftwarePassThruSupport.04.04Scanmatik___SM2_USB
push closesocket
mov edi, edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4033a5
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 0x2000
push eax
lea eax, [ebp - 0x2610]
push eax
push 0
push 0
push 0x4664b8
push dword [ebp - 0x261c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x261c]
test eax, eax
jne 0x40339f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea eax, [ebp - 0x610]
mov edx, edi
push eax
mov ecx, esi
call fcn.004021b0
add esp, 8
lea eax, [ebp - 0x261c]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x610]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40338c
cmp esi, 1
jne 0x402e5a
push edi
push str.SM2_Bluetooth__05X
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004019b0
add esp, 0x10
jmp 0x402e8b
cmp esi, 2
jne 0x402e67
push edi
push str.Wi_Fi__05X
jmp 0x402e44
lea eax, [ebp - 0x210]
test esi, esi
jne 0x402e78
push str.SM2_USB
jmp 0x402e7d
push 0x466658
push 0x104
push eax
call fcn.004019b0
add esp, 0xc
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x14
push 0x4662c0
push 1
push 0
push str.Vendor
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ec0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push str.Name
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
lea ecx, [ebp - 0x2610]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f00
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2610]
push eax
push 1
push 0
push 0x4664b8
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f40
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push ebx
push 1
push 0
push str.FunctionLibrary
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], edi
push eax
push 4
push 0
push str.DeviceSerial
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 8
mov dword [ebp - 0x2618], eax
lea eax, [ebp - 0x2618]
push eax
push 0xb
push 0
push str.BtAddress
push dword [ebp - 0x261c]
mov dword [ebp - 0x2614], ecx
call esi
test eax, eax
jne 0x403380
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 0x2614], eax
lea eax, [ebp - 0x2614]
push eax
push 4
push 0
push str.PinCode
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.ISO9141
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.ISO9141_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.ISO14230
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.ISO14230_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.J1850VPW
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.J1850PWM
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push 0x4667d4
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.CAN_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.SW_CAN_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.ISO15765
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.ISO15765_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.SW_ISO15765_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.SCI_A_ENGINE
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.SCI_A_TRANS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.SCI_B_ENGINE
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.SCI_B_TRANS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.J2610_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.GM_UART_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.J1850VPW_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.J1850PWM_PS
push dword [ebp - 0x261c]
call esi
test eax, eax
jne 0x403380
push 4
lea eax, [ebp - 0x2614]
mov dword [ebp - 0x2614], 1
push eax
push 4
push 0
push str.HONDA_DIAG_PS
push dword [ebp - 0x261c]
call esi
push dword [ebp - 0x261c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422009
mov esp, ebp
pop ebp
ret