Function at 0x401e70
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435a76
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x44a6bc]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4cc], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4b8], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x4b0], 0
mov byte [ebp - 0x4b9], 0
mov byte [ebp - 0x1d5], 0
mov dword [ebp - 0x4b4], 0
lea eax, [ebp - 0x14]
push eax
push 8
push 0
push 0x438cb0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401f2f
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0
push 0x438cd0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401f2f
push 0
push 0x30
push 0x438d00
call fcn.0040d6de
xor al, al
jmp 0x40239b
mov dword [ebp - 0x4c0], 0xc8
lea edx, [ebp - 0x10]
push edx
push 0xf003f
push 0
push str.SoftwareChryslerJ2534
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f82
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x4ac]
push ecx
lea edx, [ebp - 0x4c4]
push edx
push 0
push 0x438d9c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401fb1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x401f9c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x30
push str.Error_reading_the_Update_Manager_registry_settings__r_nPlease_re_install_
call fcn.0040d6de
xor al, al
jmp 0x40239b
mov eax, 1
test eax, eax
je 0x402008
push 0xc8
lea ecx, [ebp - 0x1d4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401fda
jmp 0x402008
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x4ac]
push edx
lea eax, [ebp - 0x1d4]
push eax
call fcn.004236c0
add esp, 8
test eax, eax
jne 0x402006
mov byte [ebp - 0x1d5], 1
jmp 0x402008
jmp 0x401fb1
movzx ecx, byte [ebp - 0x1d5]
test ecx, ecx
je 0x4020c1
lea edx, [ebp - 0x4b8]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x4ac]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], 0xc8
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x4c4]
push ecx
push 0
push 0x438df0
mov edx, dword [ebp - 0x4b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40207e
push 0
push 0x30
push 0x438e00
call fcn.0040d6de
mov byte [ebp - 0x4b9], 0
jmp 0x402095
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.FlashUpdateManager.dll_SetJ2534FuncLibName]
add esp, 4
mov byte [ebp - 0x4b9], 1
mov ecx, dword [ebp - 0x4b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x4b9]
jmp 0x40239b
cmp dword [ebp - 0x1c], 0
jne 0x4020f0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x30
push str.Error:_No_PassThru_adapters_were_found__r_nPlease_install_at_least_one_PassThru_adapter_
call fcn.0040d6de
xor al, al
jmp 0x40239b
cmp dword [ebp - 0x1c], 1
jne 0x40220f
lea eax, [ebp - 0x14]
push eax
push 8
push 0
push 0x438ec0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40212e
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0
push 0x438ee0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xc8
lea edx, [ebp - 0x1d4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x18], 0xc8
lea edx, [ebp - 0x4b8]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x1d4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x4c4]
push ecx
push 0
push 0x438f10
mov edx, dword [ebp - 0x4b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4021ce
mov eax, dword [ebp - 0x4b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x30
push 0x438f20
call fcn.0040d6de
xor al, al
jmp 0x40239b
lea eax, [ebp - 0x1d4]
push eax
call fcn.00423570
add esp, 4
push eax
lea ecx, [ebp - 0x1d4]
push ecx
push 1
push 0
push 0x438f88
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.FlashUpdateManager.dll_SetJ2534FuncLibName]
add esp, 4
mov al, 1
jmp 0x40239b
push 0
push 0x30
push str.The_previously_selected_PassThru_adapter_cannot_be_located__r_nYou_must_select_a_new_adapter
call fcn.0040d6de
push 0
lea ecx, [ebp - 0x3d4]
call fcn.00401010
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3d4]
call fcn.004064ee
lea ecx, [ebp - 0x3d4]
call fcn.00401130
mov dword [ebp - 0x4b0], eax
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0
push 0x438fec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402281
lea edx, [ebp - 0x14]
push edx
push 8
push 0
push 0x43900c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x4b8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 0x4b0]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], 0xc8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xfc]
push ecx
lea edx, [ebp - 0x4c4]
push edx
push 0
push str.FunctionLibrary
mov eax, dword [ebp - 0x4b8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402321
mov ecx, dword [ebp - 0x4b8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x30
push str.Error:_The_selected_PassThru_has_no_defined_FunctionLibrary_r_nPlease_re_install_desired_PassThru_library
call fcn.0040d6de
mov byte [ebp - 0x4c5], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d4]
call fcn.00401080
mov al, byte [ebp - 0x4c5]
jmp 0x40239b
mov ecx, dword [ebp - 0x4b0]
push ecx
call fcn.00423570
add esp, 4
push eax
mov edx, dword [ebp - 0x4b0]
push edx
push 1
push 0
push str.Vendor
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0xfc]
push ecx
call dword [sym.imp.FlashUpdateManager.dll_SetJ2534FuncLibName]
add esp, 4
mov edx, dword [ebp - 0x4b8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x4c6], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d4]
call fcn.00401080
mov al, byte [ebp - 0x4c6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00423095
mov esp, ebp
pop ebp
ret