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

Disassembly:
push 0xffffffffffffffff
push 0x42d795
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x25c
mov eax, dword [0x43ab24]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x274], ebx
push 0x43c424
lea ecx, [esi + 0x50]
mov byte [esp + 0x278], 1
call fcn.0041e66b
lea eax, [esp + 0x50]
push eax
push str.docsetup.eif
call fcn.00421b19
test eax, eax
jne 0x401c79
push str.File_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 + 0x18], esp
push edx
call fcn.0041e2a3
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x280], 2
call fcn.0041e2a3
mov ecx, esi
mov byte [esp + 0x27c], 1
call fcn.00406730
jmp 0x401fad
mov ecx, esi
call fcn.00402210
test eax, eax
je 0x401fad
mov ecx, esi
call fcn.00403b20
push str.UNINSTALL_FILE
lea ecx, [esp + 0x28]
push str.UNINSTALL
push ecx
mov ecx, esi
call fcn.00402890
mov edx, dword [esp + 0x24]
push 0x43c424
push edx
mov byte [esp + 0x27c], 3
call fcn.0040d7a5
add esp, 8
test eax, eax
jne 0x401d19
push str.ERR_MES_FILE_NOT_EXIST
lea eax, [esp + 0x18]
push str.ERROR
push eax
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 4
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x274], 3
call fcn.0041e52e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0041e2a3
mov ecx, esi
call fcn.004068b0
jmp 0x401f9c
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00421b19
test eax, eax
jne 0x401dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401d71
push str.ERR_MES_FILE_NOT_EXIST
lea edx, [esp + 0x18]
push str.ERROR
push edx
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 5
call fcn.0041e61b
mov byte [esp + 0x274], 3
lea ecx, [esp + 0x14]
jmp 0x401da5
push str.ERR_MES_ERROR_OCCURRED
lea eax, [esp + 0x18]
push str.ERROR
push eax
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 6
call fcn.0041e61b
mov byte [esp + 0x274], 3
lea ecx, [esp + 0x14]
call fcn.0041e52e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0041e2a3
mov ecx, esi
call fcn.004068b0
jmp 0x401f9c
call fcn.0042ba6e
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1c]
call fcn.00429706
lea edi, [eax + 0x40]
push 0x43c424
mov ecx, edi
call fcn.0041e66b
push str.BACKGROUND_FILE
lea eax, [esp + 0x18]
push str.INSTALL
push eax
mov ecx, esi
call fcn.00402890
push eax
mov ecx, edi
mov byte [esp + 0x278], 7
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x274], 3
call fcn.0041e52e
mov eax, dword [edi]
push 0x43c424
push eax
call fcn.0040d7a5
add esp, 8
test eax, eax
je 0x401e4e
mov eax, dword [edi]
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.00421b19
test eax, eax
jne 0x401e4e
push 0x43c424
mov ecx, edi
call fcn.0041e66b
lea ebp, [esi + 0x14a60]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
mov dword [esi + 0x154a8], ebx
call fcn.0041c2b7
mov eax, dword [0x43ab24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
mov bl, 9
mov edi, 1
mov byte [esp + 0x274], bl
push edi
lea edx, [esp + 0x2c]
push str.WRITE_FILE_d
push edx
call fcn.0041bb34
mov eax, dword [esp + 0x34]
add esp, 0xc
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
push eax
call fcn.0041e912
push eax
lea ecx, [esp + 0x18]
push str.INSTALL
push ecx
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 0xa
call fcn.0041e61b
lea ecx, [esp + 0x14]
mov byte [esp + 0x274], bl
call fcn.0041e52e
mov edx, dword [esp + 0x18]
push 0x43c424
push edx
call fcn.0040d7a5
add esp, 8
test eax, eax
je 0x401f6b
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
push 0x43a150
push ecx
call fcn.0041e7eb
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x278], 0xb
call fcn.0041e61b
lea ecx, [esp + 0x20]
mov byte [esp + 0x274], bl
call fcn.0041e52e
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x50]
push edx
push eax
call fcn.00421b19
test eax, eax
je 0x401fd9
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x154a8], 1
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x18]
push eax
call fcn.0041e912
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, ebp
call fcn.0041c400
inc edi
cmp edi, 5
jle 0x401e7f
mov ecx, esi
call fcn.00406a10
test eax, eax
jne 0x40206e
lea ecx, [esp + 0x28]
mov byte [esp + 0x274], 8
call fcn.0041e52e
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 3
call fcn.0041e52e
lea ecx, [esp + 0x24]
mov byte [esp + 0x274], 1
call fcn.0041e52e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0
call fcn.0041e52e
lea ecx, [esp + 0x10]
mov dword [esp + 0x274], 0xffffffff
call fcn.0041e52e
xor eax, eax
jmp 0x4021ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x402019
push str.ERR_MES_FILE_NOT_EXIST
lea edx, [esp + 0x24]
push str.ERROR
push edx
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 0xc
call fcn.0041e61b
mov byte [esp + 0x274], bl
lea ecx, [esp + 0x20]
jmp 0x40204c
push str.ERR_MES_ERROR_OCCURRED
lea eax, [esp + 0x24]
push str.ERROR
push eax
mov ecx, esi
call fcn.00402890
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x278], 0xd
call fcn.0041e61b
mov byte [esp + 0x274], bl
lea ecx, [esp + 0x20]
call fcn.0041e52e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.0041e2a3
mov ecx, esi
call fcn.004068b0
jmp 0x401f7a
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x38]
call fcn.0041e59c
mov ecx, dword [0x43a118]
mov edx, dword [0x43a11c]
mov eax, dword [str.ProgramFilesDir]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x34]
push ecx
xor edi, edi
push 1
mov dword [esp + 0x44], eax
mov eax, dword [0x43a120]
push edi
push edx
push 0x80000002
mov byte [esp + 0x288], 0xe
mov dword [esp + 0x5c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
je 0x4020d9
mov dword [esp + 0x2c], edi
lea edi, [esi + 0x9bc]
push 0x43a110
jmp 0x40213a
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x168]
push eax
lea edx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x48]
push edi
push eax
push ecx
mov dword [esp + 0x44], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x402119
mov dword [esp + 0x2c], edi
lea edi, [esi + 0x9bc]
push 0x43a110
jmp 0x40213a
cmp dword [esp + 0x2c], edi
jne 0x40212c
lea edi, [esi + 0x9bc]
push 0x43a110
jmp 0x40213a
lea edx, [esp + 0x168]
lea edi, [esi + 0x9bc]
push edx
mov ecx, edi
call fcn.0041e66b
mov eax, dword [esi + 0x9c8]
add esi, 0x9c8
mov cl, byte [eax]
mov byte [esp + 0x20], cl
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x402169
mov eax, dword [esi]
cmp byte [eax], 0x5c
je 0x402175
push 0x43a10c
mov ecx, edi
call fcn.0041e8be
push esi
mov ecx, edi
call fcn.0041e8fa
lea ecx, [esp + 0x34]
mov byte [esp + 0x274], bl
call fcn.0041e52e
lea ecx, [esp + 0x28]
mov byte [esp + 0x274], 8
call fcn.0041e52e
lea ecx, [esp + 0x18]
mov byte [esp + 0x274], 3
call fcn.0041e52e
lea ecx, [esp + 0x24]
mov byte [esp + 0x274], 1
call fcn.0041e52e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0
call fcn.0041e52e
lea ecx, [esp + 0x10]
mov dword [esp + 0x274], 0xffffffff
call fcn.0041e52e
mov eax, 1
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x268
ret