Function at 0x42420f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56985d
mov eax, dword fs:[0]
push eax
sub esp, 0x2d0
mov eax, dword [0x5c9030]
xor eax, esp
mov dword [esp + 0x2c8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
xor eax, esp
push eax
lea eax, [esp + 0x2e0]
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.0040266d
mov ecx, edi
call fcn.00423264
pop ecx
pop ecx
push 4
pop edi
call fcn.0042396d
test al, al
je 0x424454
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push esi
call fcn.0040266d
call fcn.0042379e
pop ecx
test al, al
je 0x424454
push 3
pop edi
push 0x5993f4
lea ecx, [esp + 0x14]
call fcn.0040f341
mov ebx, eax
and dword [esp + 0x2e8], 0
push str.SOFTWAREEPSONEpsonScanManager
lea ecx, [esp + 0x24]
call fcn.0040266d
push ebx
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x2f4], 1
call fcn.00401c01
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x2f4], 2
call fcn.00401c58
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.00402a50
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402a50
or dword [esp + 0x2e8], 0xffffffff
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.00402a50
inc bl
je 0x4245b8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xd0]
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 0x42444b
push str.ScanSmart
lea ecx, [esp + 0x18]
call fcn.0040f341
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2ec], edi
call fcn.0040378a
test eax, eax
jne 0x4243ba
call fcn.00424159
test al, al
je 0x4243ba
xor edi, edi
push str.EpsonScan_2
lea ecx, [esp + 0x20]
call fcn.0040f341
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2ec], 4
call fcn.0040378a
test eax, eax
jne 0x4243e8
push 2
pop edi
push 0x59db00
lea ecx, [esp + 0x24]
call fcn.0040f341
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x2ec], 5
call fcn.0040378a
test eax, eax
jne 0x42441f
call fcn.00424180
test al, al
je 0x42441f
xor edi, edi
inc edi
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402a50
or dword [esp + 0x2e8], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.00402a50
push dword [esp + 0x18]
jmp 0x4245b2
call fcn.00424159
test al, al
je 0x4245b8
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call fcn.0040266d
call fcn.00423b7b
pop ecx
test al, al
je 0x4245b8
push 0x5993f4
lea ecx, [esp + 0x24]
xor edi, edi
call fcn.0040f341
mov ebx, eax
push str.SOFTWAREEPSONEpsonScanManager
lea ecx, [esp + 0x20]
mov dword [esp + 0x2ec], 6
call fcn.0040266d
push ebx
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x2f4], 7
call fcn.00401c01
add esp, 0xc
push esi
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2f4], 8
call fcn.00401c58
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.00402a50
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402a50
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.00402a50
or dword [esp + 0x2e8], 0xffffffff
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402a50
inc bl
je 0x4245b8
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0xd0]
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 0x4245ae
push 0x59db00
lea ecx, [esp + 0x1c]
call fcn.0040f341
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2ec], 9
call fcn.0040378a
test eax, eax
jne 0x42459a
call fcn.00424180
test al, al
je 0x42459a
inc edi
or dword [esp + 0x2e8], 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
call fcn.00402a50
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x2c]
push eax
call fcn.004013bc
mov dword [esp + 0x2e8], 0xa
push dword [esp + 0x24]
lea eax, [esp + 0x30]
push eax
call fcn.004104cc
xor ebx, ebx
pop ecx
pop ecx
cmp edi, ebx
je 0x42467d
cmp edi, 3
je 0x42467d
cmp edi, 2
je 0x42467d
cmp dword [esp + 0x38], ebx
jle 0x42467d
cmp dword [esp + 0x30], ebx
jle 0x42467d
push 0x2f
mov esi, str...CommonProjectMgr.cpp
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x42461c
push 0x2f
jmp 0x42462c
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
test eax, eax
je 0x424637
push 0x5c
push esi
call fcn.00538fb0
pop ecx
pop ecx
inc eax
jmp 0x424639
mov eax, esi
xor edi, edi
inc edi
push edi
push 0x4a9
push eax
lea esi, [esp + 0x88]
call fcn.00404e75
push str.CProjectMgr::Run
push ebx
mov ecx, eax
mov byte [esp + 0x2f0], 0xb
call fcn.00404f53
mov esi, eax
call fcn.00402aa4
pop ecx
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2e8], 0xa
call fcn.00404ee1
lea esi, [esp + 0x2c]
call fcn.004013fe
mov eax, edi
mov ecx, dword [esp + 0x2e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c8]
xor ecx, esp
call fcn.005381db
mov esp, ebp
pop ebp
ret