Function at 0x401c3f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42fb0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x338
mov eax, dword [esp + 0x348]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ebx, [ebp + 0x1c4]
push eax
mov ecx, ebx
mov dword [esp + 0x1c], 1
mov dword [ebp + 0xc4], eax
call fcn.0041a05d
mov al, byte [esp + 0x13]
xor edi, edi
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00403360
lea edx, [esp + 0x1c]
lea ecx, [ebp + 0x1c8]
push edx
push str.mariner
mov dword [esp + 0x358], edi
call fcn.00418ade
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x354], 0xffffffff
call fcn.00403360
mov eax, dword [ebp + 0xf0]
mov dword [ebp + 0xc8], esi
cmp eax, edi
jne 0x401c2a
mov eax, dword [ebp + 0xd0]
cmp eax, edi
jne 0x401c0b
mov eax, 0x43257c
push eax
lea eax, [ebp + 0xdc]
push 1
push eax
mov ecx, ebx
call fcn.00418ee7
cmp eax, edi
mov dword [ebp + 0xf0], eax
je 0x402639
mov eax, dword [ebp + 0xe0]
cmp eax, edi
jne 0x401c39
mov eax, 0x43257c
push eax
push str.Using_datfile:__s_n
push 1
push 0x444698
call fcn.00413026
mov edx, dword [ebp + 0xe0]
add esp, 0x10
cmp edx, edi
jne 0x401c5d
mov edx, 0x43257c
mov dword [ebp + 0xec], edx
mov cl, byte [0x4541f8]
mov byte [esp + 0x244], cl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x245]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x401cc3
cmp byte [edx], 0x5c
jne 0x401c9f
cmp byte [edx + 1], 0x5c
je 0x401ca5
cmp byte [edx + 1], 0x3a
jne 0x401cc3
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x244]
repne scasb al, byte es:[edi]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
jmp 0x401d06
lea ecx, [esp + 0x244]
push ecx
call fcn.0041a6f6
lea edx, [esp + 0x248]
push edx
call fcn.0041a694
mov edi, dword [ebp + 0xec]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x4541f8]
mov ecx, edx
and ecx, 3
mov byte [esp + 0x140], al
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x141]
push 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x144]
lea edx, [esp + 0x248]
stosw word es:[edi], ax
push ecx
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401d8e
lea ecx, [esp + 0x244]
mov dword [ebp + 0xc0], 2
push ecx
push str.Datfile__s_does_not_exist____n
push 8
push 0x444698
call fcn.00413026
add esp, 0x10
xor eax, eax
jmp 0x402673
mov esi, dword [0x4541d8]
mov edx, dword [ebp + 0xec]
push edx
mov ecx, ebx
call fcn.00419c06
or eax, esi
mov ecx, 0x444698
push eax
call fcn.00412dce
push str.CICEApp::InitInstance_____intitializing_variable_n
push 2
push 0x444698
call fcn.00413026
mov eax, dword [esp + 0x364]
mov ecx, dword [ebp + 0xec]
add esp, 0xc
push 0
push eax
push ecx
mov ecx, 0x444538
call sym.HPZwis01.exe_public:_unsigned_int___thiscall_CFactory::Init_char_const___unsigned_long_int__char_const__const
test eax, eax
je 0x402611
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call fcn.00403360
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x1c8]
push eax
push str.testloc
mov dword [esp + 0x358], 1
call fcn.00418ade
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x354], 0xffffffff
call fcn.00403360
mov ecx, dword [ebp + 0xec]
xor edx, edx
test esi, esi
sete dl
lea edi, [ebp + 0xf4]
push ecx
push edx
push edi
mov ecx, ebx
mov dword [ebp + 0x108], esi
call fcn.0041919f
mov edi, dword [edi + 4]
test edi, edi
jne 0x401e60
mov edi, 0x43257c
push edi
mov ecx, 0x444538
call sym.HPZwis01.exe_public:_unsigned_short_int___thiscall_CFactory::GetLanguageId_char_const__const
mov word [ebp + 0x104], ax
mov ecx, dword [ebp + 0xd0]
test ecx, ecx
mov edx, 0x43257c
je 0x401e83
mov edx, ecx
push 0
push edx
mov edx, dword [esp + 0x360]
lea ecx, [ebp + 0x1fc]
push edx
push eax
mov eax, dword [ebp + 0xec]
push eax
call fcn.00416c51
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
call fcn.00403360
mov eax, dword [ebp + 0xec]
lea edx, [esp + 0x2c]
mov esi, 2
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x358], esi
call fcn.00418d80
test eax, eax
je 0x401f39
mov edi, 0x43d33c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x38]
push 0x43d33c
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00403060
test eax, eax
jne 0x401f0b
mov dword [0x4541e0], 1
jmp 0x401f39
mov edi, str.Only
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Only
push edx
push eax
lea ecx, [esp + 0x3c]
call fcn.00403060
test eax, eax
jne 0x401f39
mov dword [0x4541e0], esi
mov eax, dword [ebp + 0xec]
mov ecx, ebx
push eax
call fcn.00418c36
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [ebp + 0x10c], eax
call fcn.00403360
lea edx, [esp + 0x1c]
lea ecx, [ebp + 0x1c8]
push edx
push str.swreinst
mov byte [esp + 0x358], 3
call fcn.00418ade
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x354], 2
call fcn.00403360
mov dword [ebp + 0x1c0], esi
mov al, byte [0x4541f8]
mov byte [esp + 0x3c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x3c]
push ecx
stosb byte es:[edi], al
call fcn.0041a6f6
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x1a0]
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov dword [esp + 0x1c], esi
call fcn.00403170
test al, al
je 0x402007
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004030d0
mov eax, dword [ebp + 0xec]
push 0x800
lea ecx, [esp + 0x40]
push 0x104
push ecx
push str.ProductSeries
push str.Version
push eax
lea ecx, [ebp + 0x1fc]
call fcn.00418072
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x150]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x1c], esi
call fcn.00403170
test al, al
je 0x40207b
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004030d0
mov edi, str._SourcePath_
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x1b0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, esi
push ebx
call fcn.00403170
test al, al
je 0x4020c9
mov edi, dword [esi + 4]
mov ecx, ebx
mov edx, ecx
mov esi, str._SourcePath_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x1b4]
mov dword [ebp + 0x1b8], ebx
add ebx, eax
mov byte [ebx], 0
push 0x800
lea eax, [ebp + 0x1b0]
lea esi, [ebp + 0x1fc]
push 0
push eax
mov ecx, esi
call fcn.00417fb7
mov eax, dword [ebp + 0xec]
push 0x800
lea ecx, [esp + 0x40]
push 0x104
push ecx
push str.CDGuid
push str.Version
push eax
mov ecx, esi
mov byte [esp + 0x54], 0
call fcn.00418072
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x170]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, esi
push ebx
call fcn.00403170
test al, al
je 0x40215c
mov edi, dword [esi + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x174]
mov dword [ebp + 0x178], ebx
add ebx, eax
mov byte [ebx], 0
mov eax, dword [ebp + 0xec]
push 0x800
lea ecx, [esp + 0x40]
push 0x104
push ecx
push str.SoftwareGuid
push str.Version
push eax
lea ecx, [ebp + 0x1fc]
mov byte [esp + 0x54], 0
call fcn.00418072
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x180]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x1c], esi
call fcn.00403170
test al, al
je 0x4021d8
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov eax, dword [ebp + 0xec]
push 0x800
lea ecx, [esp + 0x40]
push 0x104
push ecx
push str.Manufacturer
push str.Version
push eax
lea ecx, [ebp + 0x1fc]
call fcn.00418072
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x160]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x1c], esi
call fcn.00403170
test al, al
je 0x40224f
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov ecx, edx
add eax, ecx
mov dword [ebx + 8], ecx
mov byte [eax], 0
mov eax, dword [ebp + 0xec]
push 0x800
lea ecx, [esp + 0x40]
push 0x104
push ecx
push str.RegistryManufacturer
push str.Version
push eax
lea ecx, [ebp + 0x1fc]
call fcn.00418072
test eax, eax
je 0x4022cc
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x190]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, esi
push ebx
call fcn.00403170
test al, al
je 0x4022e0
mov edi, dword [esi + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x194]
mov dword [ebp + 0x198], ebx
add ebx, eax
mov byte [ebx], 0
jmp 0x4022e0
mov eax, dword [0x432578]
lea ecx, [ebp + 0x190]
push eax
push 0
push ebx
call fcn.00402e60
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x4025ac
mov eax, dword [ebp + 0x168]
test eax, eax
je 0x4025ac
mov cl, byte [0x4541f8]
xor eax, eax
mov byte [esp + 0x140], cl
mov ecx, 0x40
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp + 0x1c4]
stosb byte es:[edi], al
call fcn.00418ed9
lea ebx, [ebp + 0x114]
lea ecx, [ebp + 0x1c8]
push ebx
push 0x43d2bc
mov dword [ebp + 0x110], eax
call fcn.00418ade
test eax, eax
je 0x402411
mov eax, dword [ebp + 0x11c]
mov ecx, dword [ebx + 8]
lea esi, [eax - 1]
cmp ecx, esi
jb 0x402388
mov eax, dword [ebx + 4]
test eax, eax
je 0x402388
mov al, byte [eax - 1]
test al, al
je 0x402378
cmp al, 0xff
je 0x402378
push 0
push ecx
mov ecx, ebx
call fcn.00403170
mov eax, dword [ebx + 4]
test eax, eax
je 0x402383
mov byte [eax - 1], 0xff
add esi, dword [ebx + 4]
jmp 0x40238d
mov esi, 0x43257c
cmp byte [esi], 0x5c
je 0x402559
mov edi, 0x43d2b8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x432578]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [ebx + 8]
sub edx, ecx
cmp edx, esi
ja 0x4023bb
call fcn.00426918
test esi, esi
jbe 0x402559
mov ecx, dword [ebx + 8]
mov eax, esi
add eax, ecx
push 0
push eax
mov ecx, ebx
mov dword [esp + 0x1c], eax
call fcn.00403170
test al, al
je 0x402559
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, esi
add edi, eax
mov eax, ecx
mov esi, 0x43d2b8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
add eax, ecx
mov byte [eax], 0
jmp 0x402559
mov ax, word [ebp + 0x104]
mov ecx, dword [ebp + 0xec]
push eax
lea edx, [esp + 0x144]
push 0x104
push edx
push str.INSTALLDIR
push 0x43d2a8
lea esi, [ebp + 0x1fc]
push ecx
mov ecx, esi
call fcn.00418072
test eax, eax
jne 0x4024ae
mov ax, word [ebp + 0x104]
mov ecx, dword [ebp + 0xec]
push eax
lea eax, [esp + 0x144]
push 0x104
push eax
push str.INSTALLDIR
push str.Version
push ecx
mov ecx, esi
call fcn.00418072
test eax, eax
jne 0x4024ae
mov ax, word [ebp + 0x104]
mov ecx, dword [ebp + 0xec]
push eax
lea edx, [esp + 0x144]
push 0x104
push edx
push str.Pre_Install
push str.Version
push ecx
mov ecx, esi
call fcn.00418072
test eax, eax
je 0x402559
lea eax, [esp + 0x140]
push eax
call fcn.0041a694
lea edi, [esp + 0x144]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0xfffffffd
mov dword [esp + 0x14], esi
jbe 0x4024df
call fcn.00426918
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x402504
mov al, byte [ecx - 1]
test al, al
je 0x402504
cmp al, 0xff
je 0x402504
test esi, esi
jne 0x402528
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00403360
jmp 0x402559
test esi, esi
jne 0x402513
push 1
mov ecx, ebx
call fcn.00403360
jmp 0x402559
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x40251f
cmp eax, esi
jae 0x402530
push 1
mov ecx, ebx
call fcn.00403360
push esi
mov ecx, ebx
call fcn.00403700
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0x140]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
lea esi, [ebp + 0x1c4]
mov ecx, esi
call fcn.00418e37
mov dword [ebp + 0x138], eax
lea eax, [ebp + 0x124]
push eax
push 0x43d298
lea ecx, [ebp + 0x1c8]
call fcn.00418ade
mov dword [ebp + 0x134], eax
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x40259d
mov dword [ebp + 0x10c], 1
mov ecx, esi
call fcn.00418e29
mov dword [ebp + 0x14c], eax
jmp 0x4025d2
push str.Either_manufacturer_or__productSeries_is_empty._n
push 8
push 0x444698
call fcn.00413026
add esp, 0xc
mov dword [ebp + 0xc0], 0x643
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x350], 0xffffffff
je 0x402603
mov al, byte [ecx - 1]
test al, al
je 0x4025f9
cmp al, 0xff
je 0x4025f9
dec al
mov byte [ecx - 1], al
jmp 0x402603
dec ecx
push ecx
call fcn.004296d1
add esp, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
jmp 0x40265b
push str.Cannot_init_the_factory_n
push 8
push 0x444698
call fcn.00413026
add esp, 0xc
mov dword [ebp + 0xc0], 0x643
mov dword [esp + 0x18], 0
jmp 0x40265b
push str.GetDatFileName___returned_FALSE.__We_need_a_dat_file_to_run._n
push 8
push 0x444698
mov dword [ebp + 0xc0], 0x643
call fcn.00413026
add esp, 0xc
mov dword [esp + 0x18], edi
push str.CSetupApp::InitInstance_n
push 4
push 0x444698
call fcn.00413026
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x348]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x344
ret 4