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

Disassembly:
push 0xffffffffffffffff
push 0x456e8c
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.0042593d
mov al, byte [esp + 0x13]
xor edi, edi
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00404400
lea edx, [esp + 0x1c]
lea ecx, [ebp + 0x1c8]
push edx
push str.mariner
mov dword [esp + 0x358], edi
call fcn.00424523
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x354], 0xffffffff
call fcn.00404400
mov eax, dword [ebp + 0xf0]
mov dword [ebp + 0xc8], esi
cmp eax, edi
jne 0x40245a
mov eax, dword [ebp + 0xd0]
cmp eax, edi
jne 0x40243b
mov eax, 0x45b980
push eax
lea eax, [ebp + 0xdc]
push 1
push eax
mov ecx, ebx
call fcn.0042492c
cmp eax, edi
mov dword [ebp + 0xf0], eax
je 0x402e69
mov eax, dword [ebp + 0xe0]
cmp eax, edi
jne 0x402469
mov eax, 0x45b980
push eax
push str.Using_datfile:__s_n
push 1
push 0x4788a8
call fcn.0041f763
mov edx, dword [ebp + 0xe0]
add esp, 0x10
cmp edx, edi
jne 0x40248d
mov edx, 0x45b980
mov dword [ebp + 0xec], edx
mov cl, byte [0x48840c]
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 0x4024f3
cmp byte [edx], 0x5c
jne 0x4024cf
cmp byte [edx + 1], 0x5c
je 0x4024d5
cmp byte [edx + 1], 0x3a
jne 0x4024f3
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 0x402536
lea ecx, [esp + 0x244]
push ecx
call fcn.0041ce0a
lea edx, [esp + 0x248]
push edx
call fcn.0041cda8
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 [0x48840c]
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 0x4025be
lea ecx, [esp + 0x244]
mov dword [ebp + 0xc0], 2
push ecx
push str.Datfile__s_does_not_exist____n
push 8
push 0x4788a8
call fcn.0041f763
add esp, 0x10
xor eax, eax
jmp 0x402ea3
mov esi, dword [0x4883e8]
mov edx, dword [ebp + 0xec]
push edx
mov ecx, ebx
call fcn.0042564b
or eax, esi
mov ecx, 0x4788a8
push eax
call fcn.0041f50b
push str.CICEApp::InitInstance_____intitializing_variable_n
push 2
push 0x4788a8
call fcn.0041f763
mov eax, dword [esp + 0x364]
mov ecx, dword [ebp + 0xec]
add esp, 0xc
push 0
push eax
push ecx
mov ecx, 0x478768
call sym.HPZshl01.exe_public:_unsigned_int___thiscall_CFactory::Init_char_const___unsigned_long_int__char_const__const
test eax, eax
je 0x402e41
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], dl
call fcn.00404400
lea eax, [esp + 0x1c]
lea ecx, [ebp + 0x1c8]
push eax
push str.testloc
mov dword [esp + 0x358], 1
call fcn.00424523
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x354], 0xffffffff
call fcn.00404400
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.00424be4
mov edi, dword [edi + 4]
test edi, edi
jne 0x402690
mov edi, 0x45b980
push edi
mov ecx, 0x478768
call sym.HPZshl01.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, 0x45b980
je 0x4026b3
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.004224c6
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
call fcn.00404400
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.004247c5
test eax, eax
je 0x402769
mov edi, 0x46e57c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x38]
push 0x46e57c
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00404100
test eax, eax
jne 0x40273b
mov dword [0x4883f4], 1
jmp 0x402769
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.00404100
test eax, eax
jne 0x402769
mov dword [0x4883f4], esi
mov eax, dword [ebp + 0xec]
mov ecx, ebx
push eax
call fcn.0042467b
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [ebp + 0x10c], eax
call fcn.00404400
lea edx, [esp + 0x1c]
lea ecx, [ebp + 0x1c8]
push edx
push str.swreinst
mov byte [esp + 0x358], 3
call fcn.00424523
push 1
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x354], 2
call fcn.00404400
mov dword [ebp + 0x1c0], esi
mov al, byte [0x48840c]
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.0041ce0a
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.00404210
test al, al
je 0x402837
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.00404170
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.004239d0
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.00404210
test al, al
je 0x4028ab
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.00404170
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.00404210
test al, al
je 0x4028f9
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.0042382c
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.004239d0
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.00404210
test al, al
je 0x40298c
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.004239d0
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.00404210
test al, al
je 0x402a08
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.004239d0
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.00404210
test al, al
je 0x402a7f
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.004239d0
test eax, eax
je 0x402afc
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.00404210
test al, al
je 0x402b10
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 0x402b10
mov eax, dword [0x45b97c]
lea ecx, [ebp + 0x190]
push eax
push 0
push ebx
call fcn.00403e70
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x402ddc
mov eax, dword [ebp + 0x168]
test eax, eax
je 0x402ddc
mov cl, byte [0x48840c]
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.0042491e
lea ebx, [ebp + 0x114]
lea ecx, [ebp + 0x1c8]
push ebx
push 0x46e4fc
mov dword [ebp + 0x110], eax
call fcn.00424523
test eax, eax
je 0x402c41
mov eax, dword [ebp + 0x11c]
mov ecx, dword [ebx + 8]
lea esi, [eax - 1]
cmp ecx, esi
jb 0x402bb8
mov eax, dword [ebx + 4]
test eax, eax
je 0x402bb8
mov al, byte [eax - 1]
test al, al
je 0x402ba8
cmp al, 0xff
je 0x402ba8
push 0
push ecx
mov ecx, ebx
call fcn.00404210
mov eax, dword [ebx + 4]
test eax, eax
je 0x402bb3
mov byte [eax - 1], 0xff
add esi, dword [ebx + 4]
jmp 0x402bbd
mov esi, 0x45b980
cmp byte [esi], 0x5c
je 0x402d89
mov edi, 0x46e4f8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x45b97c]
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 0x402beb
call fcn.00446de7
test esi, esi
jbe 0x402d89
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.00404210
test al, al
je 0x402d89
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, esi
add edi, eax
mov eax, ecx
mov esi, 0x46e4f8
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 0x402d89
mov ax, word [ebp + 0x104]
mov ecx, dword [ebp + 0xec]
push eax
lea edx, [esp + 0x144]
push 0x104
push edx
push str.INSTALLDIR
push 0x46e4e8
lea esi, [ebp + 0x1fc]
push ecx
mov ecx, esi
call fcn.004239d0
test eax, eax
jne 0x402cde
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.004239d0
test eax, eax
jne 0x402cde
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.004239d0
test eax, eax
je 0x402d89
lea eax, [esp + 0x140]
push eax
call fcn.0041cda8
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 0x402d0f
call fcn.00446de7
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x402d34
mov al, byte [ecx - 1]
test al, al
je 0x402d34
cmp al, 0xff
je 0x402d34
test esi, esi
jne 0x402d58
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00404400
jmp 0x402d89
test esi, esi
jne 0x402d43
push 1
mov ecx, ebx
call fcn.00404400
jmp 0x402d89
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x402d4f
cmp eax, esi
jae 0x402d60
push 1
mov ecx, ebx
call fcn.00404400
push esi
mov ecx, ebx
call fcn.00404820
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.0042487c
mov dword [ebp + 0x138], eax
lea eax, [ebp + 0x124]
push eax
push 0x46e4d8
lea ecx, [ebp + 0x1c8]
call fcn.00424523
mov dword [ebp + 0x134], eax
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x402dcd
mov dword [ebp + 0x10c], 1
mov ecx, esi
call fcn.0042486e
mov dword [ebp + 0x14c], eax
jmp 0x402e02
push str.Either_manufacturer_or__productSeries_is_empty._n
push 8
push 0x4788a8
call fcn.0041f763
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 0x402e33
mov al, byte [ecx - 1]
test al, al
je 0x402e29
cmp al, 0xff
je 0x402e29
dec al
mov byte [ecx - 1], al
jmp 0x402e33
dec ecx
push ecx
call fcn.0044d4f6
add esp, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
jmp 0x402e8b
push str.Cannot_init_the_factory_n
push 8
push 0x4788a8
call fcn.0041f763
add esp, 0xc
mov dword [ebp + 0xc0], 0x643
mov dword [esp + 0x18], 0
jmp 0x402e8b
push str.GetDatFileName___returned_FALSE.__We_need_a_dat_file_to_run._n
push 8
push 0x4788a8
mov dword [ebp + 0xc0], 0x643
call fcn.0041f763
add esp, 0xc
mov dword [esp + 0x18], edi
push str.CSetupApp::InitInstance_n
push 4
push 0x4788a8
call fcn.0041f763
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