Function at 0x423a6f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x569098
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.00422ad9
pop ecx
pop ecx
push 4
pop edi
call fcn.004231d3
test al, al
je 0x423cb4
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.0040235d
call fcn.00423004
pop ecx
test al, al
je 0x423cb4
push 3
pop edi
push 0x5990fc
lea ecx, [esp + 0x14]
call fcn.0040eb20
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.0040274b
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040274b
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040274b
inc bl
je 0x423e18
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 0x423cab
push str.ScanSmart
lea ecx, [esp + 0x18]
call fcn.0040eb20
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2dc], edi
call fcn.00402e8e
test eax, eax
jne 0x423c1a
call fcn.004239b9
test al, al
je 0x423c1a
xor edi, edi
push str.EpsonScan_2
lea ecx, [esp + 0x20]
call fcn.0040eb20
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2dc], 4
call fcn.00402e8e
test eax, eax
jne 0x423c48
push 2
pop edi
push 0x59d7f0
lea ecx, [esp + 0x24]
call fcn.0040eb20
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2dc], 5
call fcn.00402e8e
test eax, eax
jne 0x423c7f
call fcn.004239e0
test al, al
je 0x423c7f
xor edi, edi
inc edi
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040274b
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040274b
push dword [esp + 0x18]
jmp 0x423e12
call fcn.004239b9
test al, al
je 0x423e18
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call fcn.0040235d
call fcn.004233db
pop ecx
test al, al
je 0x423e18
push 0x5990fc
lea ecx, [esp + 0x24]
xor edi, edi
call fcn.0040eb20
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.0040274b
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040274b
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040274b
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.0040274b
inc bl
je 0x423e18
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 0x423e0e
push 0x59d7f0
lea ecx, [esp + 0x1c]
call fcn.0040eb20
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2dc], 9
call fcn.00402e8e
test eax, eax
jne 0x423dfa
call fcn.004239e0
test al, al
je 0x423dfa
inc edi
or dword [esp + 0x2d8], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.0040274b
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.00420cbd
xor ebx, ebx
pop ecx
pop ecx
cmp edi, ebx
je 0x423ed9
cmp edi, 3
je 0x423ed9
cmp edi, 2
je 0x423ed9
cmp dword [esp + 0x38], ebx
jle 0x423ed9
cmp dword [esp + 0x30], ebx
jle 0x423ed9
push 0x2f
mov esi, str...CommonProjectMgr.cpp
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x423e7c
push 0x2f
jmp 0x423e8c
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
test eax, eax
je 0x423e97
push 0x5c
push esi
call fcn.00539190
pop ecx
pop ecx
inc eax
jmp 0x423e99
mov eax, esi
push 1
push 0x4a8
push eax
lea esi, [esp + 0x78]
call fcn.00404558
push str.CProjectMgr::Run
push ebx
mov ecx, eax
mov byte [esp + 0x2e0], 0xb
call fcn.00404636
mov edi, eax
call fcn.0040a124
pop ecx
mov ecx, esi
mov byte [esp + 0x2d8], 0xa
call fcn.004045c4
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.0053792d
mov esp, ebp
pop ebp
ret