Function at 0x4239b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x568e3f
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.00402372
mov ecx, edi
call fcn.00422a1e
pop ecx
pop ecx
push 4
pop edi
call fcn.00423118
test al, al
je 0x423bf9
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.00402372
call fcn.00422f49
pop ecx
test al, al
je 0x423bf9
push 3
pop edi
push 0x59930c
lea ecx, [esp + 0x14]
call fcn.0040eeca
mov ebx, eax
and dword [esp + 0x2d8], 0
push str.SOFTWAREEPSONEpsonScanManager
lea ecx, [esp + 0x24]
call fcn.00402372
push ebx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2e4], 1
call fcn.00401906
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x2e4], 2
call fcn.0040195d
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.00402760
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402760
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00402760
inc bl
je 0x423d5d
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 0x423bf0
push str.ScanSmart
lea ecx, [esp + 0x18]
call fcn.0040eeca
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2dc], edi
call fcn.00403498
test eax, eax
jne 0x423b5f
call fcn.004238fe
test al, al
je 0x423b5f
xor edi, edi
push str.EpsonScan_2
lea ecx, [esp + 0x20]
call fcn.0040eeca
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2dc], 4
call fcn.00403498
test eax, eax
jne 0x423b8d
push 2
pop edi
push 0x59da18
lea ecx, [esp + 0x24]
call fcn.0040eeca
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2dc], 5
call fcn.00403498
test eax, eax
jne 0x423bc4
call fcn.00423925
test al, al
je 0x423bc4
xor edi, edi
inc edi
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402760
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402760
push dword [esp + 0x18]
jmp 0x423d57
call fcn.004238fe
test al, al
je 0x423d5d
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call fcn.00402372
call fcn.00423320
pop ecx
test al, al
je 0x423d5d
push 0x59930c
lea ecx, [esp + 0x24]
xor edi, edi
call fcn.0040eeca
mov ebx, eax
push str.SOFTWAREEPSONEpsonScanManager
lea ecx, [esp + 0x20]
mov dword [esp + 0x2dc], 6
call fcn.00402372
push ebx
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x2e4], 7
call fcn.00401906
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2e4], 8
call fcn.0040195d
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.00402760
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402760
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402760
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402760
inc bl
je 0x423d5d
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 0x423d53
push 0x59da18
lea ecx, [esp + 0x1c]
call fcn.0040eeca
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2dc], 9
call fcn.00403498
test eax, eax
jne 0x423d3f
call fcn.00423925
test al, al
je 0x423d3f
inc edi
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402760
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
push eax
call fcn.004013bc
mov dword [esp + 0x2d8], 0xa
push dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
call fcn.00420c02
xor ebx, ebx
pop ecx
pop ecx
cmp edi, ebx
je 0x423e1e
cmp edi, 3
je 0x423e1e
cmp edi, 2
je 0x423e1e
cmp dword [esp + 0x38], ebx
jle 0x423e1e
cmp dword [esp + 0x30], ebx
jle 0x423e1e
push 0x2f
mov esi, str...CommonProjectMgr.cpp
push esi
call fcn.005385d0
pop ecx
pop ecx
test eax, eax
je 0x423dc1
push 0x2f
jmp 0x423dd1
push 0x5c
push esi
call fcn.005385d0
pop ecx
pop ecx
test eax, eax
je 0x423ddc
push 0x5c
push esi
call fcn.005385d0
pop ecx
pop ecx
inc eax
jmp 0x423dde
mov eax, esi
push 1
push 0x4a9
push eax
lea esi, [esp + 0x78]
call fcn.00404b3c
push str.CProjectMgr::Run
push ebx
mov ecx, eax
mov byte [esp + 0x2e0], 0xb
call fcn.00404c1a
mov edi, eax
call fcn.004027b4
pop ecx
mov ecx, esi
mov byte [esp + 0x2d8], 0xa
call fcn.00404ba8
xor edi, edi
inc edi
lea esi, [esp + 0x2c]
call fcn.004013fe
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.0053780e
mov esp, ebp
pop ebp
ret