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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428516
mov eax, dword fs:[0]
push eax
sub esp, 0xfa4
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 ebx, ecx
mov dword [ebp - 0xf74], ebx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0xf58], 0
push 0
push eax
mov dword [ebp - 0xf64], 0
mov dword [ebp - 0xf5c], 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 - 0xc40]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x48
mov dword [ebp - 0xf68], 0
lea ecx, [ebp - 0xf80]
mov dword [ebp - 0xf54], 0
mov dword [ebp - 0xf70], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
lea ecx, [ebp - 0xf6c]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 0xf
mov byte [ebp - 0xc70], 0
mov dword [ebp - 0xc48], 0
mov dword [ebp - 0xc44], 0xf
mov byte [ebp - 0xc58], 0
mov dword [ebp - 0xca8], 0
mov dword [ebp - 0xca4], 0xf
mov byte [ebp - 0xcb8], 0
mov dword [ebp - 0xc78], 0
mov dword [ebp - 0xc74], 0xf
mov byte [ebp - 0xc88], 0
lea ecx, [ebp - 0xf90]
mov byte [ebp - 4], 5
call fcn.00415d70
lea eax, [ebp - 0xc58]
mov byte [ebp - 4], 6
push eax
push 1
mov dword [ebp - 0xfb0], 9
call fcn.0041e0f0
add esp, 8
test eax, eax
jne 0x4101b8
lea eax, [ebp - 0xc70]
push eax
push 2
call fcn.0041e0f0
add esp, 8
test eax, eax
jne 0x4101b8
lea ecx, [ebp - 0xf90]
call fcn.00416910
test al, al
je 0x4101b8
cmp dword [ebp - 0xc5c], 0x10
lea esi, [ebp - 0xc70]
jb 0x40fb11
mov esi, dword [ebp - 0xc70]
test esi, esi
jne 0x40fb11
xor eax, eax
jmp 0x40fb42
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fb16
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40fb2e
xor eax, eax
jmp 0x40fb42
lea eax, [edi + edi]
call fcn.00425b70
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004019a0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0xf58]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call esi
test eax, eax
jne 0x4101b8
lea eax, [ebp - 0xf54]
mov dword [ebp - 0xf54], 0x208
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xf70]
push eax
push 0
push str.LogFileLocation
push dword [ebp - 0xf58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40fbad
push dword [ebp - 0xf58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4101b8
lea ecx, [ebp - 0x628]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40fbb6
mov eax, dword [0x42efd4]
lea edi, [ebp - 0x628]
mov dword [ecx], eax
add edi, 0xfffffffe
mov eax, dword [str.U_API]
mov dword [ecx + 4], eax
mov eax, dword [0x42efdc]
mov dword [ecx + 8], eax
mov eax, dword [0x42efe0]
mov dword [ecx + 0xc], eax
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40fbf0
mov eax, dword [0x42dc1c]
mov dword [edi], eax
mov eax, 0x14
call fcn.00425b40
mov eax, esp
push 3
push 9
push str.Products
push eax
call fcn.004019a0
lea ecx, [ebp - 0xf64]
push ecx
push 0x20019
push 0
push eax
push dword [ebp - 0xf58]
call esi
test eax, eax
je 0x40fc4a
push dword [ebp - 0xf58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4101b8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xf54]
mov dword [ebp - 0xf54], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0xf64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41018b
add ebx, 0x15ab8
mov dword [ebp - 0xf60], ebx
nop dword [eax]
mov eax, 0x48
call fcn.00425b70
mov eax, esp
push 3
push 0x23
push str.DefaultSettingsMonitoringPDU_API
push eax
call fcn.004019a0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push str._s_s
push eax
call fcn.00415740
add esp, 0x10
lea eax, [ebp - 0xf5c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0xf64]
call esi
test eax, eax
jne 0x410137
lea eax, [ebp - 0xf54]
mov dword [ebp - 0xf54], 0x208
push eax
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0xf70]
push eax
push 0
push str.MonitorLibrary
push dword [ebp - 0xf5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410137
push 0x10
push str.D_PDU_API_Bosch_
lea ecx, [ebp - 0xc88]
call fcn.004028a0
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fd41
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x40fd5f
xor eax, eax
jmp 0x40fd7a
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 eax, [ebp - 0xca0]
push eax
call fcn.0041f370
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 7
jb 0x40fd96
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc88]
call fcn.0040bd70
lea ecx, [ebp - 0xca0]
mov byte [ebp - 4], 6
call fcn.00401810
lea eax, [ebp - 0xc88]
push eax
lea eax, [ebp - 0xf94]
push eax
lea ecx, [ebp - 0xf90]
call fcn.00415570
mov esi, dword [eax]
cmp esi, dword [ebp - 0xf90]
je 0x410131
lea eax, [ebp - 0xa38]
push eax
mov eax, dword [esi + 0x28]
push dword [eax + 8]
call fcn.00417cb0
add esp, 8
lea eax, [ebp - 0xf50]
push eax
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esi + 0x28]
push 0x5c
mov dword [ebp - 0xf7c], eax
push dword [ecx + 8]
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
test eax, eax
je 0x40fe5a
lea ecx, [eax + 2]
lea edx, [ebp - 0x830]
sub edx, ecx
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x40fe30
lea eax, [ebp - 0x830]
push 0x2e
push eax
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
test eax, eax
je 0x40fe5a
xor ecx, ecx
mov word [eax], cx
mov eax, 0x28
call fcn.00425b40
mov eax, esp
push 3
push 0x13
push str.MonitoringPDU_API
push eax
call fcn.004019a0
cmp dword [ebp - 0xc44], 0x10
lea edi, [ebp - 0xc58]
mov dword [ebp - 0xf78], eax
jb 0x40fe98
mov edi, dword [ebp - 0xc58]
test edi, edi
jne 0x40fe98
xor eax, eax
jmp 0x40fed2
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40fea0
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jle 0x40feb8
xor eax, eax
jmp 0x40fecc
lea eax, [ebx + ebx]
call fcn.00425b70
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.004019a0
mov ebx, dword [ebp - 0xf60]
push dword [ebp - 0xf78]
lea ecx, [ebp - 0x218]
push ecx
push eax
lea eax, [ebp - 0x420]
push str._s_s_s
push eax
call fcn.00415740
add esp, 0x14
lea eax, [ebp - 0xf5c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x420]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410131
push dword [ebp - 0xf5c]
mov ecx, ebx
call fcn.00419a30
lea eax, [ebp - 0x628]
mov ecx, ebx
push eax
call fcn.0041abc0
lea eax, [ebp - 0xc40]
mov ecx, ebx
push eax
call fcn.0041ac10
lea eax, [ebp - 0x830]
mov ecx, ebx
push eax
call fcn.0041aac0
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0041ac50
mov eax, dword [esi + 0x28]
push dword [eax + 8]
call fcn.0040db70
add esp, 4
movzx eax, al
mov ecx, ebx
push eax
call fcn.0041ab90
mov eax, dword [esi + 0x28]
mov ecx, ebx
push dword [eax + 8]
call fcn.0041ab50
lea eax, [ebp - 0xa38]
mov ecx, ebx
push eax
call fcn.0041af50
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ffa0
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jle 0x40ffbe
xor edi, edi
jmp 0x40ffdb
add edi, edi
mov eax, edi
call fcn.00425b70
mov eax, esp
lea ecx, [ebp - 0x218]
push 3
push edi
push ecx
push eax
call fcn.0040cf40
mov edi, eax
push 0x42eee8
lea eax, [ebp - 0xc58]
push eax
lea eax, [ebp - 0xd00]
push eax
call fcn.0040ac50
push edi
push eax
lea eax, [ebp - 0xce8]
mov byte [ebp - 4], 8
push eax
call fcn.0040abf0
push 0x42eee8
push eax
lea eax, [ebp - 0xcd0]
mov byte [ebp - 4], 9
push eax
call fcn.0040abf0
push str.MonitoringPDU_API
push eax
lea eax, [ebp - 0xca0]
mov byte [ebp - 4], 0xa
push eax
call fcn.0040abf0
add esp, 0x30
mov edi, eax
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x410042
mov edi, dword [edi]
test edi, edi
jne 0x41004a
xor eax, eax
jmp 0x410082
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410050
sub ecx, edx
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jle 0x410068
xor eax, eax
jmp 0x41007c
lea eax, [ebx + ebx]
call fcn.00425b70
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.004019a0
mov ebx, dword [ebp - 0xf60]
push eax
mov ecx, ebx
call fcn.0041af90
lea ecx, [ebp - 0xca0]
call fcn.00401810
lea ecx, [ebp - 0xcd0]
call fcn.00401810
lea ecx, [ebp - 0xce8]
call fcn.00401810
lea ecx, [ebp - 0xd00]
mov byte [ebp - 4], 6
call fcn.00401810
xor eax, eax
mov ecx, ebx
cmp dword [ebp - 0xf7c], 0xffffffff
setne al
push eax
call fcn.0041ab40
mov eax, dword [ebp - 0xf5c]
mov dword [ebx + 0x1070], eax
lea eax, [ebp - 0x218]
push eax
mov eax, dword [esi + 0x28]
push dword [eax]
lea eax, [ebp - 0xf6c]
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 - 0xf6c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov dword [ebp - 0xfa4], eax
lea eax, [ebp - 0xfb0]
push eax
push dword [ebp - 0xf68]
mov eax, dword [ebp - 0xf74]
push 0x133e
push dword [eax + 0x2bdd0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0xf68]
lea ecx, [ebp - 0xf54]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0xf54], 0x208
inc eax
add ebx, 0x1074
push ecx
push eax
push dword [ebp - 0xf64]
mov dword [ebp - 0xf68], eax
mov dword [ebp - 0xf60], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40fc90
mov ebx, dword [ebp - 0xf74]
push dword [ebp - 0xf64]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xf58]
call esi
lea ecx, [ebx + 0x15ab8]
call fcn.00417bd0
push eax
lea ecx, [ebx + 0x2c130]
call fcn.00414590
lea ecx, [ebp - 0xf90]
call fcn.00415e20
mov edx, dword [ebp - 0xc74]
cmp edx, 0x10
jb 0x4101ff
mov ecx, dword [ebp - 0xc88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4101f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4101f5
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 - 0xc44]
mov dword [ebp - 0xc78], 0
mov dword [ebp - 0xc74], 0xf
mov byte [ebp - 0xc88], 0
cmp edx, 0x10
jb 0x410256
mov ecx, dword [ebp - 0xc58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41024c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41024c
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 - 0xc5c]
mov dword [ebp - 0xc48], 0
mov dword [ebp - 0xc44], 0xf
mov byte [ebp - 0xc58], 0
cmp edx, 0x10
jb 0x4102ad
mov ecx, dword [ebp - 0xc70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4102a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4102a3
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 - 0xf6c]
mov dword [ebp - 0xc60], 0
mov dword [ebp - 0xc5c], 0xf
mov byte [ebp - 0xc70], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0xf80]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea esp, [ebp - 0xfc0]
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