Function at 0x401a70
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41dcfa
mov eax, dword fs:[0]
push eax
mov eax, 0x12bc
call fcn.004112b0
mov eax, dword [0x4251d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x244]
push eax
push 0x20019
push 0
push str.SOFTWARECanonCBTSETUP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401d70
mov dword [ebp - 0x240], 0x114
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x46c]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
push str.Path
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x401bc0
lea edx, [ebp - 0x46c]
push edx
lea ecx, [ebp - 0xb24]
call fcn.00406560
mov dword [ebp - 0x1234], eax
mov eax, dword [ebp - 0x1234]
mov dword [ebp - 0xe6c], eax
mov dword [ebp - 4], 0
mov ecx, dword [0x41ff6c]
push ecx
push 0
mov edx, dword [ebp - 0xe6c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x58
call fcn.00407220
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xb24]
call fcn.004077c0
mov eax, dword [ebp + 8]
add eax, 0x58
push eax
push str.__CBT_installation_path:
lea ecx, [ebp - 0xb40]
push ecx
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x1238], eax
mov edx, dword [ebp - 0x1238]
mov dword [ebp - 0x123c], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x123c]
push eax
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xb40]
call fcn.004077c0
mov dword [ebp - 0x240], 0x114
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
push str.Dependent_files
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x401d63
lea edx, [ebp - 0x23c]
mov dword [ebp - 0x6c8], edx
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x6cc], eax
cmp dword [ebp - 0x6cc], 0
jbe 0x401d63
mov ecx, dword [ebp - 0x6c8]
push ecx
lea ecx, [ebp - 0xb60]
call fcn.00406560
mov dword [ebp - 0xe80], eax
mov edx, dword [ebp - 0xe80]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0xe84], eax
xor ecx, ecx
cmp dword [ebp - 0xe84], 0
sete cl
mov byte [ebp - 0xb41], cl
push 0
push 1
lea ecx, [ebp - 0xb60]
call fcn.004077c0
movzx edx, byte [ebp - 0xb41]
test edx, edx
je 0x401c83
jmp 0x401d63
mov eax, dword [ebp - 0x6c8]
push eax
lea ecx, [ebp - 0xb7c]
call fcn.00406560
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xb7c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x90
call fcn.00406a70
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xb7c]
call fcn.004077c0
mov edx, dword [ebp - 0x6c8]
push edx
lea ecx, [ebp - 0xb98]
call fcn.00406560
mov dword [ebp - 0xec8], eax
mov eax, dword [ebp - 0xec8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xecc], ecx
mov edx, dword [ebp - 0x6cc]
sub edx, dword [ebp - 0xecc]
sub edx, 1
mov dword [ebp - 0x6cc], edx
push 0
push 1
lea ecx, [ebp - 0xb98]
call fcn.004077c0
mov eax, dword [ebp - 0x6c8]
push eax
lea ecx, [ebp - 0xbb4]
call fcn.00406560
mov dword [ebp - 0xee0], eax
mov ecx, dword [ebp - 0xee0]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xee4], edx
mov eax, dword [ebp - 0xee4]
mov ecx, dword [ebp - 0x6c8]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x6c8], edx
push 0
push 1
lea ecx, [ebp - 0xbb4]
call fcn.004077c0
jmp 0x401c1e
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x244]
push ecx
push 0x20019
push 0
push str.SOFTWARECanonCBTSETUPCBTUser
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401e6c
mov dword [ebp - 0x470], 0
jmp 0x401db1
mov edx, dword [ebp - 0x470]
add edx, 1
mov dword [ebp - 0x470], edx
mov eax, 1
test eax, eax
je 0x401e6c
mov dword [ebp - 0x240], 0x104
mov dword [ebp - 0x350], 0x104
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x34c]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x11c]
push edx
mov eax, dword [ebp - 0x470]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x401e25
movsx edx, byte [ebp - 0x11c]
test edx, edx
jne 0x401e27
jmp 0x401e6c
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0xbd0]
call fcn.00406560
mov dword [ebp - 4], 3
lea ecx, [ebp - 0xbd0]
push ecx
mov ecx, 0x436640
call fcn.00406a70
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xbd0]
call fcn.004077c0
jmp 0x401da2
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x6c], 0
sete cl
movzx edx, cl
test edx, edx
je 0x401f56
push 0x400
lea eax, [ebp - 0xacc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0xacc]
push ecx
lea ecx, [ebp - 0xbec]
call fcn.00406560
mov dword [ebp - 0x1240], eax
mov edx, dword [ebp - 0x1240]
mov dword [ebp - 0xf28], edx
mov dword [ebp - 4], 4
mov eax, dword [0x41ff6c]
push eax
push 0
mov ecx, dword [ebp - 0xf28]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x58
call fcn.00407220
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xbec]
call fcn.004077c0
mov edx, dword [ebp + 8]
add edx, 0x58
push edx
push str.__CBT_installation_path:
lea eax, [ebp - 0xc08]
push eax
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x1244], eax
mov ecx, dword [ebp - 0x1244]
mov dword [ebp - 0x1248], ecx
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0x1248]
push edx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xc08]
call fcn.004077c0
mov eax, dword [ebp + 8]
add eax, 0x90
mov dword [ebp - 0xf2c], eax
mov ecx, dword [ebp - 0xf2c]
mov edx, dword [ebp - 0xf2c]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x1c
idiv ecx
neg eax
sbb eax, eax
add eax, 1
movzx edx, al
test edx, edx
je 0x402262
push str.NBCBT95.dll_NBPORT95.exe_NBLOCALT.dll_NBPORTNT.exe_NBCBTNT.dll_NBCBTSPT.dat_AUPORT.exe
lea ecx, [ebp - 0xae8]
call fcn.00406560
mov dword [ebp - 4], 6
lea eax, [ebp - 0xf45]
mov dword [ebp - 0xf44], eax
push 0
push 0
lea ecx, [ebp - 0xb04]
call fcn.004077c0
mov byte [ebp - 4], 7
mov ecx, 1
test ecx, ecx
je 0x402239
push 0x41f5c0
call fcn.00411130
add esp, 4
mov dword [ebp - 0xf4c], eax
mov edx, dword [ebp - 0xf4c]
push edx
push 0
push 0x41f5c0
lea ecx, [ebp - 0xae8]
call fcn.00407530
mov dword [ebp - 0xb08], eax
mov eax, dword [ebp - 0xb08]
cmp eax, dword [0x41ff6c]
jne 0x402033
mov ecx, dword [0x41ff6c]
push ecx
push 0
lea edx, [ebp - 0xae8]
push edx
lea ecx, [ebp - 0xb04]
call fcn.00407220
jmp 0x40210e
cmp dword [ebp - 0xb08], 0
jbe 0x40209c
mov eax, dword [ebp - 0xb08]
push eax
push 0
lea ecx, [ebp - 0xc24]
push ecx
lea ecx, [ebp - 0xae8]
call fcn.004065d0
mov dword [ebp - 0x124c], eax
mov edx, dword [ebp - 0x124c]
mov dword [ebp - 0xf50], edx
mov byte [ebp - 4], 8
mov eax, dword [0x41ff6c]
push eax
push 0
mov ecx, dword [ebp - 0xf50]
push ecx
lea ecx, [ebp - 0xb04]
call fcn.00407220
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0xc24]
call fcn.004077c0
jmp 0x40210e
mov edx, dword [ebp - 0xad4]
mov dword [ebp - 0xf54], edx
mov eax, dword [ebp - 0xf54]
sub eax, 1
push eax
push 1
lea ecx, [ebp - 0xc40]
push ecx
lea ecx, [ebp - 0xae8]
call fcn.004065d0
mov dword [ebp - 0x1250], eax
mov edx, dword [ebp - 0x1250]
mov dword [ebp - 0xf58], edx
mov byte [ebp - 4], 9
mov eax, dword [0x41ff6c]
push eax
push 0
mov ecx, dword [ebp - 0xf58]
push ecx
lea ecx, [ebp - 0xae8]
call fcn.00407220
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0xc40]
call fcn.004077c0
jmp 0x401fc6
xor edx, edx
cmp dword [ebp - 0xaf0], 0
sete dl
movzx eax, dl
test eax, eax
jne 0x402158
push 0x41f5c0
call fcn.00411130
add esp, 4
mov dword [ebp - 0xf5c], eax
mov ecx, dword [ebp - 0xf5c]
push ecx
push 0x41f5c0
mov edx, dword [ebp - 0xaf0]
push edx
push 0
lea ecx, [ebp - 0xb04]
call fcn.00407700
test eax, eax
jne 0x40215d
jmp 0x402239
lea eax, [ebp - 0xb04]
push eax
mov ecx, 0x436628
call fcn.00406a70
mov ecx, dword [ebp - 0xaf0]
mov dword [ebp - 0xf84], ecx
cmp dword [ebp - 0xaec], 0x10
jb 0x402191
mov edx, dword [ebp - 0xb00]
mov dword [ebp - 0x1254], edx
jmp 0x40219d
lea eax, [ebp - 0xb00]
mov dword [ebp - 0x1254], eax
mov ecx, dword [ebp - 0xf84]
push ecx
push 0
mov edx, dword [ebp - 0x1254]
push edx
lea ecx, [ebp - 0xae8]
call fcn.00407530
mov dword [ebp - 0xf88], eax
mov eax, dword [ebp - 0xaf0]
mov dword [ebp - 0xf8c], eax
mov ecx, dword [0x41ff6c]
push ecx
mov edx, dword [ebp - 0xf88]
add edx, dword [ebp - 0xf8c]
push edx
lea eax, [ebp - 0xc5c]
push eax
lea ecx, [ebp - 0xae8]
call fcn.004065d0
mov dword [ebp - 0x1258], eax
mov ecx, dword [ebp - 0x1258]
mov dword [ebp - 0xf90], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [0x41ff6c]
push edx
push 0
mov eax, dword [ebp - 0xf90]
push eax
lea ecx, [ebp - 0xae8]
call fcn.00407220
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0xc5c]
call fcn.004077c0
jmp 0x401fc6
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0xb04]
call fcn.004077c0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xae8]
call fcn.004077c0
lea ecx, [ebp - 0x244]
push ecx
push 0x20019
push 0
push str.SOFTWARECanonDIASSETUP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40260e
mov dword [ebp - 0x240], 0x114
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x6a4]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push str.Path
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x40240b
lea eax, [ebp - 0x6a4]
push eax
lea ecx, [ebp - 0xc78]
call fcn.00406560
mov dword [ebp - 0x125c], eax
mov ecx, dword [ebp - 0x125c]
mov dword [ebp - 0x1260], ecx
mov dword [ebp - 4], 0xb
push 0x41f450
mov edx, dword [ebp - 0x1260]
push edx
lea eax, [ebp - 0xc94]
push eax
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x1264], eax
mov ecx, dword [ebp - 0x1264]
mov dword [ebp - 0x1268], ecx
mov byte [ebp - 4], 0xc
push str.CnxDias.exe
mov edx, dword [ebp - 0x1268]
push edx
lea eax, [ebp - 0xcb0]
push eax
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x126c], eax
mov ecx, dword [ebp - 0x126c]
mov dword [ebp - 0xfa4], ecx
mov byte [ebp - 4], 0xd
mov edx, dword [0x41ff6c]
push edx
push 0
mov eax, dword [ebp - 0xfa4]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00407220
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0xcb0]
call fcn.004077c0
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0xc94]
call fcn.004077c0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xc78]
call fcn.004077c0
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
push str.__Dias_installation_path:
lea edx, [ebp - 0xccc]
push edx
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x1270], eax
mov eax, dword [ebp - 0x1270]
mov dword [ebp - 0x1274], eax
mov dword [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1274]
push ecx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xccc]
call fcn.004077c0
mov dword [ebp - 0x240], 0x114
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x58c]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push str.AppPath
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x402506
lea eax, [ebp - 0x58c]
push eax
lea ecx, [ebp - 0xce8]
call fcn.00406560
mov dword [ebp - 0x1278], eax
mov ecx, dword [ebp - 0x1278]
mov dword [ebp - 0xfb8], ecx
mov dword [ebp - 4], 0xf
mov edx, dword [0x41ff6c]
push edx
push 0
mov eax, dword [ebp - 0xfb8]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x3c
call fcn.00407220
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xce8]
call fcn.004077c0
mov ecx, dword [ebp + 8]
add ecx, 0x3c
push ecx
push str.__Dias_data_path:
lea edx, [ebp - 0xd04]
push edx
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x127c], eax
mov eax, dword [ebp - 0x127c]
mov dword [ebp - 0x1280], eax
mov dword [ebp - 4], 0x10
mov ecx, dword [ebp - 0x1280]
push ecx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xd04]
call fcn.004077c0
mov dword [ebp - 0x240], 0x114
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x58c]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
push str.BuildNumber
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x402601
lea eax, [ebp - 0x58c]
push eax
lea ecx, [ebp - 0xd20]
call fcn.00406560
mov dword [ebp - 0x1284], eax
mov ecx, dword [ebp - 0x1284]
mov dword [ebp - 0xfcc], ecx
mov dword [ebp - 4], 0x11
mov edx, dword [0x41ff6c]
push edx
push 0
mov eax, dword [ebp - 0xfcc]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x74
call fcn.00407220
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xd20]
call fcn.004077c0
mov ecx, dword [ebp + 8]
add ecx, 0x74
push ecx
push str.__Dias_build_ver:
lea edx, [ebp - 0xd3c]
push edx
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x1288], eax
mov eax, dword [ebp - 0x1288]
mov dword [ebp - 0x128c], eax
mov dword [ebp - 4], 0x12
mov ecx, dword [ebp - 0x128c]
push ecx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xd3c]
call fcn.004077c0
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x34], 0
sete cl
movzx edx, cl
test edx, edx
je 0x4027f8
mov dword [ebp - 0x240], 0x114
lea eax, [ebp - 0x244]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x4027f1
lea ecx, [ebp - 0x240]
push ecx
lea edx, [ebp - 0x58c]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
push str.ProgramFilesDir
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x124], 0
jne 0x4027e8
lea eax, [ebp - 0x58c]
push eax
lea ecx, [ebp - 0xd58]
call fcn.00406560
mov dword [ebp - 0x1290], eax
mov ecx, dword [ebp - 0x1290]
mov dword [ebp - 0x1294], ecx
mov dword [ebp - 4], 0x13
push str.CanonDIAS_
mov edx, dword [ebp - 0x1294]
push edx
lea eax, [ebp - 0xd74]
push eax
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x1298], eax
mov ecx, dword [ebp - 0x1298]
mov dword [ebp - 0x129c], ecx
mov byte [ebp - 4], 0x14
push str.CnxDias.exe
mov edx, dword [ebp - 0x129c]
push edx
lea eax, [ebp - 0xd90]
push eax
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x12a0], eax
mov ecx, dword [ebp - 0x12a0]
mov dword [ebp - 0xfe0], ecx
mov byte [ebp - 4], 0x15
mov edx, dword [0x41ff6c]
push edx
push 0
mov eax, dword [ebp - 0xfe0]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.00407220
mov byte [ebp - 4], 0x14
push 0
push 1
lea ecx, [ebp - 0xd90]
call fcn.004077c0
mov byte [ebp - 4], 0x13
push 0
push 1
lea ecx, [ebp - 0xd74]
call fcn.004077c0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xd58]
call fcn.004077c0
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
push str.__Dias_installation_path:
lea edx, [ebp - 0xdac]
push edx
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x12a4], eax
mov eax, dword [ebp - 0x12a4]
mov dword [ebp - 0x12a8], eax
mov dword [ebp - 4], 0x16
mov ecx, dword [ebp - 0x12a8]
push ecx
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xdac]
call fcn.004077c0
jmp 0x4027ef
xor al, al
jmp 0x402b89
jmp 0x4027f8
xor al, al
jmp 0x402b89
mov edx, dword [ebp + 8]
xor eax, eax
cmp dword [edx + 0x50], 0
sete al
movzx ecx, al
test ecx, ecx
je 0x40299e
mov dword [ebp - 0x240], 0x114
lea edx, [ebp - 0x244]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x402997
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x6a4]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0
push str.Common_AppData
mov eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x244]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x124], 0
jne 0x40298e
lea edx, [ebp - 0x6a4]
push edx
lea ecx, [ebp - 0xdc8]
call fcn.00406560
mov dword [ebp - 0x12ac], eax
mov eax, dword [ebp - 0x12ac]
mov dword [ebp - 0x12b0], eax
mov dword [ebp - 4], 0x17
push str.Canon
mov ecx, dword [ebp - 0x12b0]
push ecx
lea edx, [ebp - 0xde4]
push edx
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x12b4], eax
mov eax, dword [ebp - 0x12b4]
mov dword [ebp - 0x1004], eax
mov byte [ebp - 4], 0x18
mov ecx, dword [0x41ff6c]
push ecx
push 0
mov edx, dword [ebp - 0x1004]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x3c
call fcn.00407220
mov byte [ebp - 4], 0x17
push 0
push 1
lea ecx, [ebp - 0xde4]
call fcn.004077c0
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xdc8]
call fcn.004077c0
mov eax, dword [ebp + 8]
add eax, 0x3c
push eax
push str.__Dias_data_path:
lea ecx, [ebp - 0xe00]
push ecx
call fcn.0040a7c0
add esp, 0xc
mov dword [ebp - 0x12b8], eax
mov edx, dword [ebp - 0x12b8]
mov dword [ebp - 0x12bc], edx
mov dword [ebp - 4], 0x19
mov eax, dword [ebp - 0x12bc]
push eax
call fcn.00401580
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0xe00]
call fcn.004077c0
jmp 0x402995
xor al, al
jmp 0x402b89
jmp 0x40299e
xor al, al
jmp 0x402b89
lea ecx, [ebp - 0x6c0]
mov dword [ebp - 0x1044], ecx
lea edx, [ebp - 0x103d]
mov dword [ebp - 0x103c], edx
push 0
push 0
mov ecx, dword [ebp - 0x1044]
call fcn.004077c0
mov dword [ebp - 4], 0x1a
mov dword [ebp - 0x6c4], 2
push str.DIASLog
push 0x4365d4
lea eax, [ebp - 0xe1c]
push eax
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x12c0], eax
mov ecx, dword [ebp - 0x12c0]
mov dword [ebp - 0x1048], ecx
mov byte [ebp - 4], 0x1b
mov edx, dword [0x41ff6c]
push edx
push 0
mov eax, dword [ebp - 0x1048]
push eax
lea ecx, [ebp - 0x6c0]
call fcn.00407220
mov byte [ebp - 4], 0x1a
push 0
push 1
lea ecx, [ebp - 0xe1c]
call fcn.004077c0
lea ecx, [ebp - 0x6c4]
push ecx
mov ecx, 0x436658
call fcn.00406d10
mov dword [ebp - 0x6c4], 1
push str.DIASCfg
push 0x4365d4
lea edx, [ebp - 0xe38]
push edx
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x12c4], eax
mov eax, dword [ebp - 0x12c4]
mov dword [ebp - 0x10c0], eax
mov byte [ebp - 4], 0x1c
mov ecx, dword [0x41ff6c]
push ecx
push 0
mov edx, dword [ebp - 0x10c0]
push edx
lea ecx, [ebp - 0x6c0]
call fcn.00407220
mov byte [ebp - 4], 0x1a
push 0
push 1
lea ecx, [ebp - 0xe38]
call fcn.004077c0
lea eax, [ebp - 0x6c4]
push eax
mov ecx, 0x436658
call fcn.00406d10
mov dword [ebp - 0x6c4], 1
push 0x41f468
push 0x4365d4
lea ecx, [ebp - 0xe54]
push ecx
call fcn.0040a870
add esp, 0xc
mov dword [ebp - 0x12c8], eax
mov edx, dword [ebp - 0x12c8]
mov dword [ebp - 0x113c], edx
mov byte [ebp - 4], 0x1d
mov eax, dword [0x41ff6c]
push eax
push 0
mov ecx, dword [ebp - 0x113c]
push ecx
lea ecx, [ebp - 0x6c0]
call fcn.00407220
mov byte [ebp - 4], 0x1a
push 0
push 1
lea ecx, [ebp - 0xe54]
call fcn.004077c0
lea edx, [ebp - 0x6c4]
push edx
mov ecx, 0x436658
call fcn.00406d10
mov dword [ebp - 0x6c4], 1
mov eax, dword [0x41ff6c]
push eax
push 0
push 0x4365d4
lea ecx, [ebp - 0x6c0]
call fcn.00407220
lea ecx, [ebp - 0x6c4]
push ecx
mov ecx, 0x436658
call fcn.00406d10
mov byte [ebp - 0xe55], 1
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x6c0]
call fcn.004077c0
mov al, byte [ebp - 0xe55]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411116
mov esp, ebp
pop ebp
ret