Function at 0x406a10
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42e05a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
mov eax, dword [0x43ab24]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x294], edi
mov dword [esi + 0x154a4], edi
mov dword [esi + 0xa00], edi
mov bl, 3
mov eax, dword [0x43ab24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
lea ebp, [edi + 1]
lea eax, [esp + 0x18]
push ebp
push str.REG_LIBFILE_d
push eax
mov byte [esp + 0x2a0], bl
call fcn.0041bb34
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
push eax
call fcn.0041e912
push eax
lea edx, [esp + 0x28]
push str.INSTALL
push edx
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x298], 4
call fcn.0041e61b
lea ecx, [esp + 0x24]
mov byte [esp + 0x294], bl
call fcn.0041e52e
test edi, edi
push 0x43c424
jne 0x406b08
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040d7a5
add esp, 8
test eax, eax
je 0x406c5e
mov ecx, dword [esp + 0x18]
push str.NONE
push ecx
call fcn.0040e160
add esp, 8
test eax, eax
je 0x406cd4
mov dword [esi + 0xa00], 1
jmp 0x406b1d
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040d7a5
add esp, 8
test eax, eax
je 0x406cde
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0x43a150
push ecx
call fcn.0041e7eb
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x298], 6
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], bl
call fcn.0041e52e
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x174]
push edx
push eax
call fcn.00421b19
test eax, eax
je 0x406d05
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
push eax
call fcn.0041e912
mov edx, dword [esi + 0x9f4]
lea ecx, [esi + 0x9ec]
push eax
push edx
call fcn.0041c400
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 2
call fcn.0041e52e
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 1
call fcn.0041e52e
mov edi, ebp
cmp edi, 5
jl 0x406a55
mov eax, dword [esi + 0xa00]
test eax, eax
je 0x407369
push str.LIBFILEPATH_BASE
lea ecx, [esp + 0x2c]
push str.INSTALL
push ecx
mov ecx, esi
call fcn.00402890
mov edx, dword [esp + 0x28]
push 0x43c424
push edx
mov byte [esp + 0x29c], 9
call fcn.0040d7a5
add esp, 8
test eax, eax
jne 0x406d9a
push str._LIBFILEPATH_BASE_Key_not_found.
lea ecx, [esp + 0x14]
call fcn.0041e66b
push str.Abort_installation.
lea ecx, [esp + 0x20]
call fcn.0041e66b
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0041e2a3
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
mov byte [esp + 0x29c], 0xa
push edx
call fcn.0041e2a3
mov ecx, esi
mov byte [esp + 0x29c], 9
call fcn.00406730
jmp 0x407412
push str._REG_LIBFILE1_Key_not_found.
lea ecx, [esp + 0x14]
call fcn.0041e66b
push str.Abort_installation.
lea ecx, [esp + 0x20]
call fcn.0041e66b
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0041e2a3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x2a0], 5
call fcn.0041e2a3
mov ecx, esi
mov byte [esp + 0x29c], bl
call fcn.00406730
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 2
call fcn.0041e52e
mov byte [esp + 0x294], 1
lea ecx, [esp + 0x20]
jmp 0x40741e
mov dword [esi + 0xa00], 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 2
call fcn.0041e52e
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 1
call fcn.0041e52e
jmp 0x406bbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x406d45
push str.ERR_MES_FILE_NOT_EXIST
lea ecx, [esp + 0x18]
push str.ERROR
push ecx
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 7
call fcn.0041e61b
mov byte [esp + 0x294], bl
lea ecx, [esp + 0x14]
jmp 0x406d78
push str.ERR_MES_ERROR_OCCURRED
lea edx, [esp + 0x18]
push str.ERROR
push edx
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 8
call fcn.0041e61b
mov byte [esp + 0x294], bl
lea ecx, [esp + 0x14]
call fcn.0041e52e
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0041e2a3
mov ecx, esi
call fcn.004068b0
jmp 0x406cb2
push str.COMMON_PATH
lea eax, [esp + 0x18]
push str.INSTALL
push eax
mov ecx, esi
call fcn.00402890
lea edi, [esi + 0x9c4]
push eax
mov ecx, edi
mov byte [esp + 0x298], 0xb
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 9
call fcn.0041e52e
mov edi, dword [edi]
push 0x43c424
push edi
call fcn.0040d7a5
add esp, 8
test eax, eax
jne 0x406e31
push str._COMMON_PATH_Key_not_found.
lea ecx, [esp + 0x14]
call fcn.0041e66b
push str.Abort_installation.
lea ecx, [esp + 0x20]
call fcn.0041e66b
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0041e2a3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x1c], esp
mov byte [esp + 0x29c], 0xc
push eax
jmp 0x406c45
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x38]
call fcn.0041e59c
mov edx, dword [0x43a118]
mov eax, dword [0x43a11c]
mov ecx, dword [str.ProgramFilesDir]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x34]
push edx
push 1
mov dword [esp + 0x64], ecx
mov ecx, dword [0x43a120]
push 0
push eax
push 0x80000002
mov byte [esp + 0x2a8], 0xd
mov dword [esp + 0x7c], ecx
call ebp
test eax, eax
je 0x406ee3
push str.ERR_MES_ERROR_OCCURRED
lea ecx, [esp + 0x18]
push str.ERROR
push ecx
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 0xe
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 0xd
call fcn.0041e52e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.0041e2a3
mov ecx, esi
call fcn.004068b0
jmp 0x407401
lea eax, [esp + 0x54]
lea ecx, [esp + 0x70]
push eax
lea edx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
lea eax, [esp + 0x68]
push 0
push eax
push ecx
mov dword [esp + 0x6c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406f66
push str.ERR_MES_ERROR_OCCURRED
lea edx, [esp + 0x18]
push str.ERROR
push edx
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x298], 0xf
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 0xd
call fcn.0041e52e
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0041e2a3
mov ecx, esi
call fcn.004068b0
jmp 0x407401
lea ecx, [esp + 0x70]
lea edi, [esi + 0x9c0]
push ecx
mov ecx, edi
call fcn.0041e66b
mov edx, dword [esp + 0x28]
mov al, byte [edx]
mov byte [esp + 0x14], al
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x406f9a
mov edx, dword [esp + 0x28]
cmp byte [edx], 0x5c
je 0x406fa6
push 0x43a10c
mov ecx, edi
call fcn.0041e8be
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.0041e8fa
push str.COMPANY_NAME
lea ecx, [esp + 0x3c]
push str.INSTALL
push ecx
mov ecx, esi
call fcn.00402890
push str.PRODUCT_NAME1
lea edx, [esp + 0x40]
push str.INSTALL
push edx
mov ecx, esi
mov byte [esp + 0x2a0], 0x10
call fcn.00402890
push str.PRODUCT_LANGUAGE1
lea eax, [esp + 0x44]
push str.INSTALL
push eax
mov ecx, esi
mov byte [esp + 0x2a0], 0x11
call fcn.00402890
mov ecx, dword [0x43ab24]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x3c]
push 0x43c424
push edx
mov byte [esp + 0x29c], 0x13
call fcn.0040d7a5
add esp, 8
test eax, eax
je 0x407142
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
push str.Software_
push ecx
call fcn.0041e7eb
push 0x43a10c
lea edx, [esp + 0x1c]
push eax
push edx
mov byte [esp + 0x2a0], 0x14
call fcn.0041e777
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x2a0], 0x15
call fcn.0041e711
push 0x43a10c
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x29c], 0x16
push eax
call fcn.0041e777
lea ecx, [esp + 0x40]
lea edx, [esp + 0x14]
push ecx
mov bl, 0x17
push eax
push edx
mov byte [esp + 0x2a0], bl
call fcn.0041e711
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x298], 0x18
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], bl
call fcn.0041e52e
lea ecx, [esp + 0x24]
mov byte [esp + 0x294], 0x16
call fcn.0041e52e
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 0x15
call fcn.0041e52e
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 0x14
call fcn.0041e52e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x294], 0x13
call fcn.0041e52e
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x44]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
call ebp
test eax, eax
jne 0x407133
mov dword [esi + 0x154a4], 1
jmp 0x407142
cmp eax, 2
jne 0x407142
mov dword [esi + 0x154a4], 0
mov eax, dword [esi + 0x9f4]
xor ebx, ebx
test eax, eax
jle 0x407303
lea ebp, [esi + 0x154b0]
lea edi, [ebp - 4]
push 0x43c424
mov ecx, edi
call fcn.0041e66b
lea edx, [esp + 0x24]
push ebx
push edx
lea ecx, [esi + 0x9ec]
call fcn.00401720
lea eax, [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x298], 0x19
call fcn.0041e61b
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.0041e2a3
mov ecx, esi
call fcn.00406940
cmp eax, 0xffffffff
je 0x4071db
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
call fcn.0041b646
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x298], 0x1a
call fcn.0041e61b
lea ecx, [esp + 0x2c]
mov byte [esp + 0x294], 0x19
call fcn.0041e52e
lea ecx, [esp + 0x24]
call fcn.0041ea04
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
push ecx
push str.Software_
push edx
call fcn.0041e7eb
push str.COUNTER_
push eax
lea eax, [esp + 0x28]
mov byte [esp + 0x29c], 0x1b
push eax
call fcn.0041e777
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x2a0], 0x1c
call fcn.0041e711
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x298], 0x1d
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], 0x1c
call fcn.0041e52e
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], 0x1b
call fcn.0041e52e
lea ecx, [esp + 0x18]
mov byte [esp + 0x294], 0x19
call fcn.0041e52e
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x44]
push eax
xor edi, edi
push 0xf003f
push edi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4072d1
lea edx, [esp + 0x58]
lea eax, [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x54]
push eax
push ecx
push edi
push str.SRCHCOUNTER
push edx
mov dword [esp + 0x70], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x4072c6
mov eax, dword [esp + 0x48]
mov dword [ebp], eax
mov dword [ebp + 4], eax
jmp 0x4072e0
cmp eax, 2
jne 0x4073ac
jmp 0x4072da
cmp eax, 2
jne 0x4073ac
mov dword [ebp], edi
mov dword [ebp + 4], edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x294], 0x13
call fcn.0041e52e
mov eax, dword [esi + 0x9f4]
inc ebx
add ebp, 0xc
cmp ebx, eax
jl 0x407158
lea ecx, [esp + 0x30]
mov byte [esp + 0x294], 0x12
call fcn.0041e52e
lea ecx, [esp + 0x40]
mov byte [esp + 0x294], 0x11
call fcn.0041e52e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x294], 0x10
call fcn.0041e52e
lea ecx, [esp + 0x38]
mov byte [esp + 0x294], 0xd
call fcn.0041e52e
lea ecx, [esp + 0x34]
mov byte [esp + 0x294], 9
call fcn.0041e52e
lea ecx, [esp + 0x28]
mov byte [esp + 0x294], 1
call fcn.0041e52e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 0
call fcn.0041e52e
lea ecx, [esp + 0x10]
mov dword [esp + 0x294], 0xffffffff
call fcn.0041e52e
mov eax, 1
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x288
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x294], 0x13
call fcn.0041e52e
lea ecx, [esp + 0x30]
mov byte [esp + 0x294], 0x12
call fcn.0041e52e
lea ecx, [esp + 0x40]
mov byte [esp + 0x294], 0x11
call fcn.0041e52e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x294], 0x10
call fcn.0041e52e
lea ecx, [esp + 0x38]
mov byte [esp + 0x294], 0xd
call fcn.0041e52e
lea ecx, [esp + 0x34]
mov byte [esp + 0x294], 9
call fcn.0041e52e
mov byte [esp + 0x294], 1
lea ecx, [esp + 0x28]
call fcn.0041e52e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x294], 0
call fcn.0041e52e
lea ecx, [esp + 0x10]
mov dword [esp + 0x294], 0xffffffff
call fcn.0041e52e
xor eax, eax
jmp 0x407393