Function at 0x40cfa0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4281ae
mov eax, dword fs:[0]
push eax
sub esp, 0xf68
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
lea ecx, [ebp - 0xf54]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xf44]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xf48]
mov dword [ebp - 0xf30], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xf4c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x420]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x830]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x628]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x30
mov dword [ebp - 0xf10], esi
mov dword [ebp - 0xf0c], 0xf
mov byte [ebp - 0xf20], 0
mov dword [ebp - 0xef8], esi
mov dword [ebp - 0xef4], 0xf
mov byte [ebp - 0xf08], 0
mov dword [ebp - 0xee0], esi
mov dword [ebp - 0xedc], 0xf
mov byte [ebp - 0xef0], 0
lea ecx, [ebp - 0xf38]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xf24]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0x104
lea eax, [ebp - 0xe48]
mov byte [ebp - 4], 8
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.00417be0
mov edi, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__16]
lea eax, [ebp - 0xe48]
push eax
lea eax, [ebp - 0xf44]
push str._sRP121032.ini
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0xc40]
push dword [ebp - 0xf44]
push 0x104
push eax
push esi
push str.APIImplementations
push str.RP1210Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0xc40]
push eax
lea ecx, [ebp - 0xf38]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
lea eax, [ebp - 0xf30]
push eax
push 0x42ef88
lea eax, [ebp - 0xf28]
push eax
lea ecx, [ebp - 0xf38]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
push eax
lea ecx, [ebp - 0xf24]
mov byte [ebp - 4], 9
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea ecx, [ebp - 0xf28]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x42d99c
lea ecx, [ebp - 0xf24]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
test eax, eax
je 0x40d250
nop dword [eax]
lea ecx, [ebp - 0xf24]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__5]
push dword [ebp - 0xf24]
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xf48]
push str._s_s.dll
push eax
call edi
push dword [ebp - 0xf24]
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xf4c]
push str._s__s.dll
push eax
call edi
add esp, 0x20
lea ecx, [ebp - 0xf4c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
lea ecx, [ebp - 0xf48]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
call fcn.0041aa50
add esp, 8
lea eax, [ebp - 0xf30]
lea ecx, [ebp - 0xf38]
push eax
push 0x42ef88
lea eax, [ebp - 0xf28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
push eax
lea ecx, [ebp - 0xf24]
mov byte [ebp - 4], 0xa
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea ecx, [ebp - 0xf28]
mov byte [ebp - 4], 8
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x42d99c
lea ecx, [ebp - 0xf24]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
test eax, eax
jne 0x40d190
push str.PassThruSupport.04.04
lea eax, [ebp - 0x830]
push str.Software_s
push eax
call fcn.00415740
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xf40]
add esp, 0xc
push eax
push 0x20019
push 0
lea eax, [ebp - 0x830]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x40d3b8
lea eax, [ebp - 0xf74]
mov dword [ebp - 0xf34], 0x208
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xf34]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push dword [ebp - 0xf40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d3b0
lea eax, [ebp - 0xf50]
inc esi
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0xf40]
call ebx
test eax, eax
jne 0x40d376
lea eax, [ebp - 0xf34]
mov dword [ebp - 0xf34], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.FunctionLibrary
push dword [ebp - 0xf50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d376
push dword [ebp - 0xf50]
call edi
lea eax, [ebp - 0x218]
push eax
call fcn.0040db70
add esp, 4
test al, al
je 0x40d376
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00417cb0
add esp, 8
test al, al
je 0x40d376
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041aa50
add esp, 8
lea eax, [ebp - 0xf74]
mov dword [ebp - 0xf34], 0x208
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xf34]
push eax
lea eax, [ebp - 0x628]
push eax
push esi
push dword [ebp - 0xf40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40d2d4
push dword [ebp - 0xf40]
call edi
lea ecx, [ebp - 0xf2c]
mov dword [ebp - 0xf30], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xf3c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 0xe80], 0
mov dword [ebp - 0xe7c], 0xf
mov byte [ebp - 0xe90], 0
mov dword [ebp - 0xe98], 0
mov dword [ebp - 0xe94], 0xf
mov byte [ebp - 0xea8], 0
mov dword [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0xf
mov byte [ebp - 0xe78], 0
mov dword [ebp - 0xeb0], 0
mov dword [ebp - 0xeac], 0xf
mov byte [ebp - 0xec0], 0
lea eax, [ebp - 0xf5c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xf58]
mov dword [ebp - 0xf58], 0
push eax
lea eax, [ebp - 0xec0]
mov dword [ebp - 0xf5c], 0
push eax
lea eax, [ebp - 0xe78]
push eax
lea eax, [ebp - 0xea8]
push eax
lea eax, [ebp - 0xe90]
push eax
push 0
call fcn.0041e2b0
add esp, 0x1c
test al, al
je 0x40d7d2
lea ecx, [ebp - 0xf6c]
call fcn.00415d70
mov dword [ebp - 0xe50], 0
mov dword [ebp - 0xe4c], 0xf
mov byte [ebp - 0xe60], 0
lea ecx, [ebp - 0xf6c]
mov byte [ebp - 4], 0x12
call fcn.00416910
test al, al
je 0x40d7c7
cmp dword [ebp - 0xe64], 0x10
lea eax, [ebp - 0xe78]
lea ecx, [ebp - 0xf3c]
cmovae eax, dword [ebp - 0xe78]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__12]
lea eax, [ebp - 0xf30]
push eax
push 0x42f044
lea eax, [ebp - 0xf28]
push eax
lea ecx, [ebp - 0xf3c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
push eax
lea ecx, [ebp - 0xf2c]
mov byte [ebp - 4], 0x13
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea ecx, [ebp - 0xf28]
mov byte [ebp - 4], 0x12
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x42d99c
lea ecx, [ebp - 0xf2c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
test eax, eax
je 0x40d7c7
push 0x10
push str.D_PDU_API_Bosch_
lea ecx, [ebp - 0xe60]
call fcn.004028a0
mov edi, dword [ebp - 0xf2c]
test edi, edi
je 0x40d5b9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d572
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x40d5b9
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.00425b70
mov esi, esp
test esi, esi
je 0x40d5b9
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x40d5bb
xor esi, esi
lea eax, [ebp - 0xed8]
push esi
push eax
call fcn.0041f370
add esp, 8
mov edx, eax
cmp dword [edx + 0x14], 0x10
mov byte [ebp - 4], 0x14
jb 0x40d5d9
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d5e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xe60]
call fcn.00402740
mov edx, dword [ebp - 0xec4]
mov byte [ebp - 4], 0x12
cmp edx, 0x10
jb 0x40d634
mov ecx, dword [ebp - 0xed8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d62a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d7b7
push edx
push ecx
call fcn.00425b14
add esp, 8
mov ebx, dword [ebp - 0xf6c]
mov esi, ebx
mov edi, dword [ebx + 4]
cmp byte [edi + 0xd], 0
jne 0x40d6dd
mov ebx, dword [ebp - 0xe60]
nop
cmp dword [ebp - 0xe4c], 0x10
lea ecx, [ebp - 0xe60]
lea edx, [edi + 0x10]
cmovae ecx, ebx
cmp dword [edi + 0x24], 0x10
jb 0x40d66c
mov edx, dword [edi + 0x10]
push dword [ebp - 0xe50]
push ecx
push dword [edi + 0x20]
push edx
call fcn.00401540
shr eax, 0x1f
add esp, 0x10
test al, al
je 0x40d68b
mov edi, dword [edi + 8]
jmp 0x40d68f
mov esi, edi
mov edi, dword [edi]
cmp byte [edi + 0xd], 0
je 0x40d650
mov ebx, dword [ebp - 0xf6c]
cmp esi, ebx
je 0x40d6dd
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
jb 0x40d6ab
mov edx, dword [esi + 0x10]
push dword [esi + 0x20]
cmp dword [ebp - 0xe4c], 0x10
lea eax, [ebp - 0xe60]
mov edi, dword [ebp - 0xe60]
push edx
push dword [ebp - 0xe50]
cmovae eax, edi
push eax
call fcn.00401540
shr eax, 0x1f
add esp, 0x10
test al, al
jne 0x40d6e3
jmp 0x40d6e5
mov edi, dword [ebp - 0xe60]
mov esi, ebx
cmp esi, ebx
je 0x40d736
mov eax, dword [esi + 0x28]
lea edx, [ebp - 0x218]
mov ecx, dword [eax + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x40d6f5
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00417cb0
add esp, 8
test al, al
je 0x40d736
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041aa50
add esp, 8
lea eax, [ebp - 0xf30]
push eax
push 0x42f044
lea eax, [ebp - 0xf28]
push eax
lea ecx, [ebp - 0xf3c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
push eax
lea ecx, [ebp - 0xf2c]
mov byte [ebp - 4], 0x15
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
lea ecx, [ebp - 0xf28]
mov byte [ebp - 4], 0x12
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x42d99c
lea ecx, [ebp - 0xf2c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
test eax, eax
jne 0x40d551
mov eax, dword [ebp - 0xe4c]
cmp eax, 0x10
jb 0x40d7c7
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40d7bd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d7bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.00425b14
add esp, 8
lea ecx, [ebp - 0xf6c]
call fcn.00415e20
mov edx, dword [ebp - 0xeac]
cmp edx, 0x10
jb 0x40d80e
mov ecx, dword [ebp - 0xec0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d804
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d804
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 - 0xe64]
mov dword [ebp - 0xeb0], 0
mov dword [ebp - 0xeac], 0xf
mov byte [ebp - 0xec0], 0
cmp edx, 0x10
jb 0x40d865
mov ecx, dword [ebp - 0xe78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d85b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d85b
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 - 0xe94]
mov dword [ebp - 0xe68], 0
mov dword [ebp - 0xe64], 0xf
mov byte [ebp - 0xe78], 0
cmp edx, 0x10
jb 0x40d8bc
mov ecx, dword [ebp - 0xea8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d8b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d8b2
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 - 0xe7c]
mov dword [ebp - 0xe98], 0
mov dword [ebp - 0xe94], 0xf
mov byte [ebp - 0xea8], 0
cmp edx, 0x10
jb 0x40d913
mov ecx, dword [ebp - 0xe90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d909
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d909
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 - 0xf3c]
mov dword [ebp - 0xe80], 0
mov dword [ebp - 0xe7c], 0xf
mov byte [ebp - 0xe90], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xf2c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xf24]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xf38]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xf4c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xf48]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xf44]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xf54]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea esp, [ebp - 0xf84]
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