Function at 0x405a20
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [0x421530]
test eax, eax
je 0x405656
dec eax
cmp eax, 1
jbe 0x405a20
xor eax, eax
ret
jmp fcn.00405660
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x41fd00
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a40
push esi
push edi
sub ecx, edx
jne 0x405c18
call fcn.00408ad0
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x41f0f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x41fcff], al
test al, al
jne 0x405a60
mov eax, dword [0x421530]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
cmp eax, 1
jne 0x405a8a
push str.Programs
jmp 0x405a94
cmp eax, 2
jne 0x405a9b
push str.DBDOCPrograms
push 0x41fd00
call edi
mov ecx, 4
mov byte [0x420513], 1
call fcn.00408aa0
mov ecx, 0x41ecf0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ab4
sub ecx, edx
je 0x405db8
mov ecx, 0x41fd00
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ad0
sub ecx, edx
cmp byte [ecx + 0x41fcff], 0x5c
jne 0x405aed
push 0x41ecf0
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x41fd00
push 0x41ecf0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
je 0x405db8
call fcn.00408ad0
mov ecx, 0x1d
lea edi, [ebp - 0x404]
mov esi, str.It_appears_that_there_are_CIUMon_services_specified_from_a_previous_installation_which_were_not_deleted_at_the_time
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405b27
mov ecx, 7
lea eax, [ebp - 0x804]
mov esi, str.that_DBDOC_was_uninstalled._n_n
rep movsd dword es:[edi], dword [esi]
push 0x41fd00
push 0x41ecf0
push str.Service_location:__s_nInstallation_location:__s_n_n
push eax
movsw word es:[edi], word [esi]
call fcn.004010e0
lea edx, [ebp - 0x804]
add esp, 0x10
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x405b63
lea edi, [ebp - 0x404]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405b73
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405b90
mov ecx, 0x15
mov esi, str.Please_contact_G._Michaels_Consulting_Ltd._for_assistance_to_correct_this_situation._n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x404]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405bb0
mov ecx, 0x17
mov esi, str.__________Phone:_1_866_438_2101__Toll_free_in_North_America___00_1_780_438_2101__elsewhere__n
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405bd0
mov ecx, 0x10
lea eax, [ebp - 0x404]
mov esi, str.__________Website:__www.gmcl.com_n__________E_mail:_Geoff_gmcl.com
rep movsd dword es:[edi], dword [esi]
push 0x11030
push str.Install_Location_Mismatch
push eax
push dword [0x41f8f0]
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x41fd00]
mov byte [ebp + ecx - 0x804], al
inc ecx
test al, al
jne 0x405c20
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x804]
push str.BuildPlus.exe
push eax
call edi
cmp dword [0x421530], 1
lea eax, [ebp - 0x804]
mov byte [ebp - 0x404], 0
push eax
jne 0x405c65
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
jmp 0x405c95
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call esi
test eax, eax
jne 0x405cb1
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x4187d0
lea eax, [ebp - 0x804]
push eax
call edi
lea eax, [ebp - 0x804]
push eax
call esi
test eax, eax
je 0x405cb1
call fcn.00408ad0
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
cmp byte [0x41e018], 0
jne 0x405db8
call fcn.00408ad0
mov ecx, 0x1d
lea edi, [ebp - 0x404]
mov esi, str.It_appears_that_the_CIUMon_services_specified_are_not_running_from_the_location_indicated_by_the_installation_key._n_n
lea eax, [ebp - 0x804]
rep movsd dword es:[edi], dword [esi]
push 0x41fd00
push 0x41ecf0
push str.Service_location:__s_nInstallation_location:__s_n_n
push eax
movsb byte es:[edi], byte [esi]
call fcn.004010e0
lea edx, [ebp - 0x804]
add esp, 0x10
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x405d00
lea edi, [ebp - 0x404]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d10
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d30
mov ecx, 0x15
mov esi, str.Please_contact_G._Michaels_Consulting_Ltd._for_assistance_to_correct_this_situation._n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x404]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d50
mov ecx, 0x17
mov esi, str.__________Phone:_1_866_438_2101__Toll_free_in_North_America___00_1_780_438_2101__elsewhere__n
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x404]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405d70
mov ecx, 0x10
lea eax, [ebp - 0x404]
mov esi, str.__________Website:__www.gmcl.com_n__________E_mail:_Geoff_gmcl.com
rep movsd dword es:[edi], dword [esi]
push 0x11030
push str.Install_Location_Mismatch
push eax
push dword [0x41f8f0]
movsw word es:[edi], word [esi]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
cmp byte [0x420510], 0
jne 0x405e10
cmp byte [0x420d21], 0
je 0x405e10
call fcn.00408ad0
push 1
push 0x405270
push dword [0x41f8f0]
push 0x41965c
push dword [0x41f8f8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
jne 0x405e06
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412814
mov esp, ebp
pop ebp
ret
mov ecx, 4
call fcn.00408aa0
cmp byte [0x41e8ee], 0
jne 0x405e23
call fcn.00406a30
mov dword [0x420514], eax
xor cl, cl
call fcn.00402980
call fcn.00407060
mov eax, dword [0x420d24]
test eax, eax
jne 0x405e4a
call fcn.00409680
mov dword [0x420d24], eax
test eax, eax
je 0x405f5f
cmp byte [0x420513], 0
je 0x405e6a
push 1
push 2
push str.NewInstall
push eax
call fcn.0040a2c0
mov eax, dword [0x420d24]
add esp, 0x10
push 0x420d30
push 1
push str.VSPUpgrade
push eax
call fcn.0040a2c0
add esp, 0x10
call fcn.00409680
mov esi, eax
test esi, esi
je 0x405ed2
push 0x41fd00
push 1
push str.CrypKeyLocale
push esi
call fcn.0040a2c0
xor eax, eax
cmp byte [0x420510], al
setne al
push eax
push 2
push str.CurrentCrypServ
push esi
call fcn.0040a2c0
push esi
push 0x40
push str.CrypKey
push dword [0x420d24]
call fcn.0040a2c0
add esp, 0x30
mov ecx, esi
call fcn.00409420
mov eax, dword [0x41f8f4]
test eax, eax
je 0x405ef1
push eax
push 0x40
push str.InstallLocales
push dword [0x420d24]
call fcn.0040a2c0
add esp, 0x10
mov eax, dword [0x41e8e0]
test eax, eax
je 0x405f10
push eax
push 0x40
push str.Services
push dword [0x420d24]
call fcn.0040a2c0
add esp, 0x10
xor ecx, ecx
mov al, byte [ecx + 0x420110]
mov byte [ebp + ecx - 0x804], al
inc ecx
test al, al
jne 0x405f12
push str.Installation.nod
lea eax, [ebp - 0x804]
push eax
call edi
lea eax, [ebp - 0x804]
push 0x419938
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x405f5f
push ecx
mov edx, esi
call fcn.0040a9c0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 8
call fcn.00408ad0
mov ecx, dword [0x420d24]
test ecx, ecx
je 0x405f73
call fcn.00409420
mov ecx, dword [0x41f8f4]
test ecx, ecx
je 0x405f82
call fcn.00409420
mov ecx, dword [0x41e8e0]
test ecx, ecx
je 0x405f91
call fcn.00409420
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00412814
mov esp, ebp
pop ebp
ret