Function at 0x40e570
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4283fb
mov eax, dword fs:[0]
push eax
mov eax, 0x18b0
call fcn.00425b40
mov eax, dword [0x524104]
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 edi, ecx
mov dword [ebp - 0x1850], edi
push 0x208
lea eax, [ebp - 0xb38]
mov dword [ebp - 0x1864], 0
push 0
push eax
mov dword [ebp - 0x1844], 0
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x1150]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0xd40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x728]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x48
lea eax, [ebp - 0xf48]
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x930]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x1870], 0
mov dword [ebp - 0x1568], 0
mov dword [ebp - 0x1564], 0xf
mov byte [ebp - 0x1578], 0
push 0
push 0
push 0x1304
push dword [edi + 0x2b8c8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_SendMessageW]
xorps xmm0, xmm0
mov dword [ebp - 0x1878], 0
test eax, eax
movlpd qword [ebp - 0x18b4], xmm0
push 0x42b870
lea ecx, [edi + 0x2bd2c]
movlpd qword [ebp - 0x18ac], xmm0
sete byte [ebp - 0x1845]
movlpd qword [ebp - 0x18a4], xmm0
mov dword [ebp - 0x18b8], 9
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
lea ecx, [ebp - 0x1854]
mov dword [ebp - 0x1890], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 0x1580], 0
mov dword [ebp - 0x157c], 0xf
mov byte [ebp - 0x1590], 0
mov dword [ebp - 0x1598], 0
mov dword [ebp - 0x1594], 0xf
mov byte [ebp - 0x15a8], 0
mov dword [ebp - 0x15b0], 0
mov dword [ebp - 0x15ac], 0xf
mov byte [ebp - 0x15c0], 0
lea eax, [ebp - 0x1590]
mov byte [ebp - 4], 4
push eax
push 1
call fcn.0041e0f0
add esp, 8
test eax, eax
je 0x40e8c0
mov edx, dword [ebp - 0x15ac]
cmp edx, 0x10
jb 0x40e7a6
mov ecx, dword [ebp - 0x15c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e79c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e79c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
mov edx, dword [ebp - 0x1594]
mov dword [ebp - 0x15b0], 0
mov dword [ebp - 0x15ac], 0xf
mov byte [ebp - 0x15c0], 0
cmp edx, 0x10
jb 0x40e7fd
mov ecx, dword [ebp - 0x15a8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e7f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e7f3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
mov edx, dword [ebp - 0x157c]
mov dword [ebp - 0x1598], 0
mov dword [ebp - 0x1594], 0xf
mov byte [ebp - 0x15a8], 0
cmp edx, 0x10
jb 0x40e854
mov ecx, dword [ebp - 0x1590]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e84a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e84a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
lea ecx, [ebp - 0x1854]
mov dword [ebp - 0x1580], 0
mov dword [ebp - 0x157c], 0xf
mov byte [ebp - 0x1590], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edx, dword [ebp - 0x1564]
cmp edx, 0x10
jb 0x40f532
mov ecx, dword [ebp - 0x1578]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40e8b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e8b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00425b14
add esp, 8
jmp 0x40f532
lea eax, [ebp - 0x15a8]
push eax
push 2
call fcn.0041e0f0
add esp, 8
test eax, eax
jne 0x40f4fa
lea eax, [ebp - 0x15c0]
push eax
push 5
call fcn.0041e0f0
add esp, 8
test eax, eax
jne 0x40f4fa
lea ecx, [ebp - 0x1860]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0x1858]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
cmp dword [ebp - 0x1594], 0x10
lea esi, [ebp - 0x15a8]
mov byte [ebp - 4], 6
mov dword [ebp - 0x185c], 0
mov dword [ebp - 0x1888], 0
jb 0x40e93f
mov esi, dword [ebp - 0x15a8]
test esi, esi
jne 0x40e93f
xor eax, eax
jmp 0x40e976
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e944
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40e95c
xor eax, eax
jmp 0x40e970
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
mov edi, dword [ebp - 0x1850]
lea ecx, [ebp - 0x185c]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f4e2
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 0x100
push eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x1888]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push str.LogFileLocation
push dword [ebp - 0x185c]
call eax
test eax, eax
jne 0x40f4d6
push str.J2534
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x1860]
push str._s_s_
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__16]
add esp, 0x10
push dword [ebp - 0x185c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x4c
call fcn.00425b70
mov eax, esp
push 3
push 0x25
push str.DefaultSettingsMonitoringJ2534_API
push eax
call fcn.004019a0
cmp dword [edi + 0x2c404], 0x10
lea esi, [edi + 0x2c3f0]
mov dword [ebp - 0x1868], eax
jb 0x40ea32
mov esi, dword [esi]
test esi, esi
jne 0x40ea3a
xor ebx, ebx
jmp 0x40ea74
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ea40
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40ea58
xor ebx, ebx
jmp 0x40ea6e
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
mov ebx, eax
mov edi, dword [ebp - 0x1850]
mov eax, 0x14
call fcn.00425b40
mov ecx, esp
push 3
push 9
push str.Products
push ecx
call fcn.004019a0
cmp dword [edi + 0x2c3d4], 0x10
lea esi, [edi + 0x2c3c0]
mov dword [ebp - 0x186c], eax
jb 0x40eaa6
mov esi, dword [esi]
test esi, esi
jne 0x40eaae
xor eax, eax
jmp 0x40eae5
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eab3
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40eacb
xor eax, eax
jmp 0x40eadf
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
mov edi, dword [ebp - 0x1850]
push dword [ebp - 0x1868]
push ebx
push dword [ebp - 0x186c]
push eax
lea eax, [ebp - 0x1358]
push str._s_s_s_s
push eax
call fcn.00415740
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x185c]
add esp, 0x18
push eax
push 0x20019
push 0
lea eax, [ebp - 0x1358]
push eax
push 0x80000002
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40eb61
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 0x208
push eax
lea eax, [ebp - 0x1560]
push eax
lea eax, [ebp - 0x1888]
push eax
push 0
push str.MonitorLibrary
push dword [ebp - 0x185c]
call esi
push str.PassThruSupport.04.04
lea eax, [ebp - 0x1150]
push str.Software_s
push eax
call fcn.00415740
add esp, 0xc
lea eax, [ebp - 0x1864]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x1150]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x40f4e2
push eax
push eax
push eax
push eax
mov dword [ebp - 0x1868], eax
mov dword [ebp - 0x187c], eax
lea eax, [ebp - 0x1844]
push eax
lea eax, [ebp - 0xd40]
mov dword [ebp - 0x1844], 0x208
push eax
push 0
push dword [ebp - 0x1864]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40f4b9
lea ebx, [edi + 0x100]
inc dword [ebp - 0x187c]
lea eax, [ebp - 0x184c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0xd40]
mov dword [ebp - 0x184c], 0
push eax
push dword [ebp - 0x1864]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f46d
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 0x208
push eax
lea eax, [ebp - 0x728]
push eax
push 0
push 0
push str.Vendor
push dword [ebp - 0x184c]
call esi
test eax, eax
je 0x40ec59
push dword [ebp - 0x184c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f46d
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.Name
push dword [ebp - 0x184c]
call esi
test eax, eax
je 0x40ec97
push dword [ebp - 0x184c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f46d
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push str.FunctionLibrary
push dword [ebp - 0x184c]
call esi
test eax, eax
je 0x40ecd5
push dword [ebp - 0x184c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f46d
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 4
push eax
lea eax, [ebp - 0x1890]
mov dword [ebp - 0x1890], 0
push eax
push 0
push 0
push str.PDUAPISupported
push dword [ebp - 0x184c]
call esi
lea eax, [ebp - 0x420]
push eax
call fcn.0040db70
add esp, 4
movzx eax, al
mov ecx, ebx
push eax
call fcn.0041ab90
mov ecx, ebx
call fcn.00417b70
test eax, eax
je 0x40f46d
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 0x208
push eax
lea eax, [ebp - 0x930]
push eax
push 0
push 0
push str.ProductGroup
push dword [ebp - 0x184c]
call esi
lea ecx, [ebp - 0x1578]
test eax, eax
jne 0x40edfb
lea eax, [ebp - 0x1590]
push eax
call fcn.0040bd40
push 1
push 0x42eee8
lea ecx, [ebp - 0x1578]
call fcn.00402740
lea ecx, [ebp - 0x930]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ed90
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x40edae
xor eax, eax
jmp 0x40edc9
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x930]
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x1578]
call fcn.0040bd70
push 1
push 0x42eee8
lea ecx, [ebp - 0x1578]
call fcn.00402740
push 8
push str.Products
lea ecx, [ebp - 0x1578]
call fcn.00402740
jmp 0x40ee10
xor eax, eax
mov word [ebp - 0x930], ax
lea eax, [ebp - 0x1590]
push eax
call fcn.0040bd40
push 1
push 0x42eee8
lea ecx, [ebp - 0x1578]
call fcn.00402740
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ee30
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x40ee4e
xor eax, eax
jmp 0x40ee69
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x218]
push 3
push esi
push ecx
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x1578]
call fcn.0040bd70
push 1
push 0x42eee8
lea ecx, [ebp - 0x1578]
call fcn.00402740
push 0x24
push str.DefaultSettingsMonitoringJ2534_API
lea ecx, [ebp - 0x1578]
call fcn.00402740
push dword [ebp - 0x184c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
cmp dword [ebp - 0x1564], 0x10
lea esi, [ebp - 0x1578]
jb 0x40eec4
mov esi, dword [ebp - 0x1578]
test esi, esi
jne 0x40eec4
xor eax, eax
jmp 0x40ef02
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eed0
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40eee8
xor eax, eax
jmp 0x40eefc
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1870]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ef78
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 0x100
push eax
lea eax, [ebp - 0x520]
push eax
lea eax, [ebp - 0x1888]
push eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
push str.MonitorLibrary
push dword [ebp - 0x1870]
call eax
test eax, eax
jne 0x40f4af
lea eax, [ebp - 0x520]
push eax
lea ecx, [ebp - 0x1858]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push dword [ebp - 0x1870]
call edi
jmp 0x40ef8b
lea eax, [ebp - 0x1560]
push eax
lea ecx, [ebp - 0x1858]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x189c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea eax, [ebp - 0x728]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x1898]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x1894]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea eax, [ebp - 0x1590]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x15d8]
call fcn.004016a0
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
lea eax, [ebp - 0x728]
push eax
call fcn.0041ad30
lea ecx, [ebp - 0x1858]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
mov ecx, ebx
call fcn.0041ac10
cmp dword [ebp - 0x15c4], 0x10
lea esi, [ebp - 0x15d8]
jb 0x40f033
mov esi, dword [ebp - 0x15d8]
test esi, esi
jne 0x40f033
xor eax, eax
jmp 0x40f064
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f038
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40f050
xor eax, eax
jmp 0x40f064
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
push eax
mov ecx, ebx
call fcn.0041af90
lea eax, [ebp - 0x420]
push eax
call fcn.0040db70
add esp, 4
movzx eax, al
mov ecx, ebx
push eax
call fcn.0041ab90
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0041ac50
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0041ab50
lea eax, [ebp - 0x420]
push 0x42eeec
push eax
call sub.VCRUNTIME140.dll_wcsstr
add esp, 8
test eax, eax
je 0x40f13c
lea ecx, [ebp - 0x930]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f0c7
mov esi, dword [ebp - 0x1850]
lea eax, [ebp - 0x930]
sub ecx, edx
sar ecx, 1
mov ecx, esi
jne 0x40f0ec
lea eax, [ebp - 0x218]
push eax
call fcn.0040f560
lea edx, [esi + 0x2b470]
lea ecx, [edx - 2]
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40f100
mov eax, dword [str.J2534]
lea edi, [edx - 2]
mov dword [ecx], eax
mov eax, dword [0x42edac]
mov dword [ecx + 4], eax
mov eax, dword [0x42edb0]
mov dword [ecx + 8], eax
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40f126
mov eax, dword [0x42dc1c]
mov dword [edi], eax
push edx
jmp 0x40f198
lea ecx, [ebp - 0x1858]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
lea edx, [ebp - 0xf48]
sub edx, eax
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [eax + edx - 2], cx
test cx, cx
jne 0x40f150
mov ecx, dword [ebp - 0x1850]
lea eax, [ebp - 0xf48]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x728]
push eax
push str.J2534
push 0x42eeec
lea eax, [ebp - 0x420]
push eax
call fcn.00411210
lea eax, [ebp - 0xf48]
push eax
mov ecx, ebx
call fcn.0041abc0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x1874]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
push 0x5c
lea ecx, [ebp - 0x1874]
mov byte [ebp - 4], 0xb
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
mov ecx, dword [ebp - 0x1874]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
lea eax, [ebp - 0x1880]
dec ecx
push ecx
push eax
lea ecx, [ebp - 0x1874]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__4]
push 0x2e
lea ecx, [ebp - 0x1880]
mov byte [ebp - 4], 0xc
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__6]
push eax
lea eax, [ebp - 0x186c]
push eax
lea ecx, [ebp - 0x1880]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
lea ecx, [ebp - 0x186c]
mov byte [ebp - 4], 0xd
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
mov ecx, ebx
call fcn.0041aac0
lea eax, [ebp - 0xb38]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00417cb0
add esp, 8
test al, al
je 0x40f277
lea eax, [ebp - 0xb38]
mov ecx, ebx
push eax
call fcn.0041af50
lea eax, [ebp - 0x1840]
push eax
lea eax, [ebp - 0xb38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40f26e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
jmp 0x40f270
push 0
mov ecx, ebx
call fcn.0041ab40
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x728]
push eax
call fcn.0041ad30
mov edi, eax
test edi, edi
je 0x40f2d3
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f2a0
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x40f2be
xor eax, eax
jmp 0x40f2d3
add esi, esi
mov eax, esi
call fcn.00425b70
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040cf40
push eax
lea ecx, [ebp - 0x15f0]
call fcn.0040ad10
push eax
lea ecx, [ebp - 0x15d8]
call fcn.0040bd00
lea ecx, [ebp - 0x15f0]
call fcn.00401810
mov esi, dword [ebp - 0x1868]
lea eax, [ebp - 0x15d8]
mov edi, dword [ebp - 0x1850]
mov ecx, edi
push str.J2534_API
push eax
push esi
call fcn.0040e3f0
cmp byte [ebp - 0x1845], 0
je 0x40f409
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x188c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__14]
lea ecx, [ebp - 0x1884]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
cmp dword [0x5240a0], 0x10
lea ecx, [ebp - 0x1884]
mov eax, 0x52408c
mov byte [ebp - 4], 0xf
cmovae eax, dword [0x52408c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x728]
push eax
lea eax, [ebp - 0x1854]
push str._s____s
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__16]
add esp, 0x10
lea ecx, [ebp - 0x1854]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov dword [ebp - 0x18ac], eax
lea eax, [ebp - 0x18b8]
push eax
push esi
push 0x133e
push dword [edi + 0x2b8c8]
mov dword [ebp - 0x18a0], esi
mov dword [ebp - 0x18b0], 0x10
mov dword [ebp - 0x18b4], 2
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x1884]
lea ecx, [ebp - 0x188c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
mov ecx, dword [ebp - 0x1878]
test eax, eax
cmove ecx, esi
mov dword [ebp - 0x1878], ecx
lea ecx, [ebp - 0x1884]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x188c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x186c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1880]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1874]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc esi
lea ecx, [ebp - 0x15d8]
mov dword [ebp - 0x1868], esi
add ebx, 0x1074
call fcn.00401810
lea ecx, [ebp - 0x1894]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1898]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x189c]
mov byte [ebp - 4], 6
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x1844], 0x208
push eax
lea eax, [ebp - 0xd40]
push eax
mov eax, dword [ebp - 0x187c]
push eax
push dword [ebp - 0x1864]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40f4b9
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x40ebe2
push dword [ebp - 0x1870]
call edi
jmp 0x40f4e2
cmp byte [ebp - 0x1845], 0
je 0x40f4ce
mov eax, dword [ebp - 0x1878]
mov dword [edi + 0x2bd28], eax
push dword [ebp - 0x1864]
jmp 0x40f4dc
push dword [ebp - 0x185c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1858]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1860]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x15c0]
call fcn.00401810
lea ecx, [ebp - 0x15a8]
call fcn.00401810
lea ecx, [ebp - 0x1590]
call fcn.00401810
lea ecx, [ebp - 0x1854]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x1578]
call fcn.00401810
lea esp, [ebp - 0x18cc]
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.00425b22
mov esp, ebp
pop ebp
ret