Function at 0x4240cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x569c81
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x5c9030]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0x2d0]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push ecx
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
lea edi, [esp + 0x30]
call fcn.0040235d
mov ecx, edi
call fcn.00423136
pop ecx
pop ecx
push 4
pop edi
call fcn.00423830
test al, al
je 0x424311
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.0040235d
call fcn.00423661
pop ecx
test al, al
je 0x424311
push 3
pop edi
push 0x59932c
lea ecx, [esp + 0x14]
call fcn.0040f17a
mov ebx, eax
and dword [esp + 0x2d8], 0
push str.SOFTWAREEPSONEpsonScanManager
lea ecx, [esp + 0x24]
call fcn.0040235d
push ebx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2e4], 1
call fcn.004018e7
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x2e4], 2
call fcn.0040193e
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402722
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00402722
inc bl
je 0x424475
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push str.EventLaunchApp
push dword [esp + 0x2c]
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x424308
push str.ScanSmart
lea ecx, [esp + 0x18]
call fcn.0040f17a
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2dc], edi
call fcn.0040345a
test eax, eax
jne 0x424277
call fcn.00424016
test al, al
je 0x424277
xor edi, edi
push str.EpsonScan_2
lea ecx, [esp + 0x20]
call fcn.0040f17a
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2dc], 4
call fcn.0040345a
test eax, eax
jne 0x4242a5
push 2
pop edi
push 0x59da20
lea ecx, [esp + 0x24]
call fcn.0040f17a
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2dc], 5
call fcn.0040345a
test eax, eax
jne 0x4242dc
call fcn.0042403d
test al, al
je 0x4242dc
xor edi, edi
inc edi
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402722
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402722
push dword [esp + 0x18]
jmp 0x42446f
call fcn.00424016
test al, al
je 0x424475
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call fcn.0040235d
call fcn.00423a38
pop ecx
test al, al
je 0x424475
push 0x59932c
lea ecx, [esp + 0x24]
xor edi, edi
call fcn.0040f17a
mov ebx, eax
push str.SOFTWAREEPSONEpsonScanManager
lea ecx, [esp + 0x20]
mov dword [esp + 0x2dc], 6
call fcn.0040235d
push ebx
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x2e4], 7
call fcn.004018e7
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2e4], 8
call fcn.0040193e
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402722
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402722
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402722
inc bl
je 0x424475
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x30]
push eax
push edi
push str.EventLaunchApp
push dword [esp + 0x28]
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42446b
push 0x59da20
lea ecx, [esp + 0x1c]
call fcn.0040f17a
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2dc], 9
call fcn.0040345a
test eax, eax
jne 0x424457
call fcn.0042403d
test al, al
je 0x424457
inc edi
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402722
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
push eax
call fcn.0040139d
mov dword [esp + 0x2d8], 0xa
push dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
call fcn.00421318
xor ebx, ebx
pop ecx
pop ecx
cmp edi, ebx
je 0x424536
cmp edi, 3
je 0x424536
cmp edi, 2
je 0x424536
cmp dword [esp + 0x38], ebx
jle 0x424536
cmp dword [esp + 0x30], ebx
jle 0x424536
push 0x2f
mov esi, str...CommonProjectMgr.cpp
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x4244d9
push 0x2f
jmp 0x4244e9
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
test eax, eax
je 0x4244f4
push 0x5c
push esi
call fcn.005392c0
pop ecx
pop ecx
inc eax
jmp 0x4244f6
mov eax, esi
push 1
push 0x4a9
push eax
lea esi, [esp + 0x78]
call fcn.00404b01
push str.CProjectMgr::Run
push ebx
mov ecx, eax
mov byte [esp + 0x2e0], 0xb
call fcn.00404bdf
mov edi, eax
call fcn.00402776
pop ecx
mov ecx, esi
mov byte [esp + 0x2d8], 0xa
call fcn.00404b6d
xor edi, edi
inc edi
lea esi, [esp + 0x2c]
call fcn.004013df
mov eax, edi
mov ecx, dword [esp + 0x2d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b8]
xor ecx, esp
call fcn.005384ff
mov esp, ebp
pop ebp
ret