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

Disassembly:
push 0xffffffffffffffff
push 0x429b2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x540
mov dl, byte [0x439698]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x349]
mov byte [esp + 0x348], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x44d]
mov byte [esp + 0x44c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x348]
push 0x104
push eax
push 0
mov dword [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x348]
push ecx
call fcn.0040ff62
mov esi, edx
lea edx, [esp + 0x34c]
add esp, 4
mov ebx, eax
test edx, edx
je 0x4030af
lea edi, [esp + 0x348]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x4030af
lea eax, [esp + 0x348]
lea edi, [esp + 0x348]
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x348]
test al, al
je 0x403095
mov al, byte [edi]
cmp al, 0x5c
je 0x403078
cmp al, 0x2f
je 0x403078
cmp al, 0x3a
jne 0x403085
push edi
call fcn.00413d6d
add esp, 4
mov dword [esp + 0x10], eax
push edi
call fcn.00413d6d
mov edi, eax
add esp, 4
cmp byte [edi], 0
jne 0x40306a
mov ecx, dword [esp + 0x10]
push 0x104
lea edx, [esp + 0x450]
push ecx
push edx
call fcn.00413cd3
add esp, 0xc
mov eax, ebx
push 0x20
and eax, 0xffff
mov ecx, 0x10
push eax
mov eax, ebx
mov edx, esi
call fcn.00413dc0
and eax, 0xffff
mov ecx, esi
push eax
mov edx, esi
mov eax, esi
and edx, 0xffff
sar ecx, 0x1f
sar eax, 0x10
push edx
lea ecx, [esp + 0x45c]
push eax
push ecx
push str._s_version_d._d._d._d__Image_d_bits
push 1
push 0x4398a0
sar esi, 0x1f
call fcn.004011e0
add esp, 0x24
call fcn.0040a118
mov ecx, dword [0x449694]
push eax
mov eax, dword [0x44971c]
xor edx, edx
mov dx, word [0x44971e]
and eax, 0xffff
push edx
mov edx, dword [0x449690]
push eax
mov eax, dword [0x44968c]
push ecx
mov ecx, dword [0x449698]
push edx
push eax
push ecx
push str.Running_on_Windows_PlatId_d_Version__d._d.0._d_SP_d._d_Windows_64Bit_OS_d
push 1
push 0x4398a0
call fcn.004011e0
mov eax, dword [esp + 0x588]
add esp, 0x28
lea ebx, [ebp + 0x1c4]
mov dword [ebp + 0xc4], eax
push eax
mov ecx, ebx
call fcn.0040bd79
mov dl, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.00402110
lea eax, [esp + 0x18]
lea ecx, [ebp + 0x1c8]
push eax
push str.mariner
mov dword [esp + 0x560], 0
call fcn.0040a7f2
push 1
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x55c], 0xffffffff
call fcn.00402110
mov eax, dword [ebp + 0xf0]
mov dword [ebp + 0xc8], esi
test eax, eax
jne 0x4031ee
mov eax, dword [ebp + 0xd0]
test eax, eax
jne 0x4031cf
mov eax, 0x42b4d8
push eax
lea ecx, [ebp + 0xdc]
push 1
push ecx
mov ecx, ebx
call fcn.0040abfb
test eax, eax
mov dword [ebp + 0xf0], eax
je 0x403cdb
mov eax, dword [ebp + 0xe0]
test eax, eax
jne 0x4031fd
mov eax, 0x42b4d8
push eax
push str.Using_datfile:__s_n
push 1
push 0x4398a0
call fcn.004011e0
mov edx, dword [ebp + 0xe0]
add esp, 0x10
test edx, edx
jne 0x403221
mov edx, 0x42b4d8
mov dword [ebp + 0xec], edx
mov al, byte [0x439698]
mov byte [esp + 0x244], al
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 0x403289
cmp byte [edx], 0x5c
jne 0x403262
cmp byte [edx + 1], 0x5c
je 0x403268
cmp byte [edx + 1], 0x3a
jne 0x403289
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 0x403318
lea ecx, [esp + 0x244]
push ecx
call fcn.0040e54b
lea edx, [esp + 0x248]
add esp, 4
test edx, edx
je 0x4032f2
lea edi, [esp + 0x244]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4032f2
cmp byte [esp + ecx + 0x243], 0x5c
je 0x4032f2
mov edi, 0x4329f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x244]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xec]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x244]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 [0x439698]
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]
mov edx, eax
test edx, edx
je 0x4033ac
cmp edx, 0x104
ja 0x4033ac
lea edi, [esp + 0x244]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jae 0x4033ac
lea edi, [esp + 0x140]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4033ec
lea edx, [esp + 0x244]
mov dword [ebp + 0xc0], 2
push edx
push str.Datfile__s_does_not_exist____n
push 8
push 0x4398a0
call fcn.004011e0
add esp, 0x10
xor eax, eax
jmp 0x403d11
mov esi, dword [0x4493e0]
mov eax, dword [ebp + 0xec]
push eax
mov ecx, ebx
call fcn.0040b922
or eax, esi
mov ecx, 0x4398a0
push eax
call fcn.004060cb
push str.CICEApp::InitInstance_____intitializing_variable_n
push 2
push 0x4398a0
call fcn.004011e0
mov ecx, dword [esp + 0x56c]
mov edx, dword [ebp + 0xec]
add esp, 0xc
lea eax, [ebp + 0x1fc]
push eax
push 0
push ecx
push edx
mov ecx, 0x439760
call fcn.0040c31b
test eax, eax
je 0x403cbb
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00402110
lea ecx, [esp + 0x18]
mov dword [esp + 0x558], 1
push ecx
push str.testloc
lea ecx, [ebp + 0x1c8]
call fcn.0040a7f2
push 1
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x55c], 0xffffffff
call fcn.00402110
mov edx, dword [ebp + 0xec]
xor eax, eax
test esi, esi
sete al
lea edi, [ebp + 0xf4]
push edx
push eax
push edi
mov ecx, ebx
mov dword [ebp + 0x108], esi
call fcn.0040aeb8
mov edi, dword [edi + 4]
test edi, edi
jne 0x4034c5
mov edi, 0x42b4d8
push edi
mov ecx, 0x439760
call fcn.0040c1f6
mov word [ebp + 0x104], ax
mov ecx, dword [ebp + 0xd0]
test ecx, ecx
jne 0x4034e6
mov ecx, 0x42b4d8
mov edx, dword [ebp + 0xec]
push 0
push ecx
mov ecx, dword [esp + 0x568]
push ecx
push eax
push edx
lea ecx, [ebp + 0x1fc]
call fcn.00407cd7
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x30], al
call fcn.00402110
mov edx, dword [ebp + 0xec]
lea ecx, [esp + 0x2c]
mov esi, 2
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x560], esi
call fcn.0040aa94
test eax, eax
je 0x40359d
mov edi, 0x432998
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x34]
not ecx
dec ecx
push ecx
push 0x432998
push eax
push 0
lea ecx, [esp + 0x3c]
call fcn.004046a0
test eax, eax
jne 0x40356f
mov dword [0x4493f0], 1
jmp 0x40359d
mov edi, str.Only
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x38]
push str.Only
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.004046a0
test eax, eax
jne 0x40359d
mov dword [0x4493f0], esi
mov edx, dword [ebp + 0xec]
mov ecx, ebx
push edx
call fcn.0040a94a
mov dword [ebp + 0x10c], eax
mov al, byte [esp + 0x17]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00402110
lea ecx, [esp + 0x18]
mov byte [esp + 0x558], 3
push ecx
push str.swreinst
lea ecx, [ebp + 0x1c8]
call fcn.0040a7f2
push 1
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x55c], 2
call fcn.00402110
mov dword [ebp + 0x1c0], esi
mov dl, byte [0x439698]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3c]
push eax
call fcn.0040e54b
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]
push 1
mov dword [esp + 0x14], ecx
push ecx
mov ecx, ebx
call fcn.00402190
test al, al
je 0x40366c
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 4]
mov ecx, eax
lea esi, [esp + 0x3c]
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00402170
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.00409735
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 + 0x18], esi
call fcn.00402190
test al, al
je 0x4036e0
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.00402170
mov edi, str._SourcePath_
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x1b0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov dword [esp + 0x14], ecx
push ecx
mov ecx, ebx
call fcn.00402190
test al, al
je 0x40372e
mov edx, dword [esp + 0x10]
mov edi, dword [ebx + 4]
mov ecx, edx
mov esi, str._SourcePath_
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], edx
add eax, edx
mov byte [eax], 0
push 0x800
lea esi, [ebp + 0x1fc]
push 0
push ebx
mov ecx, esi
call fcn.0040963b
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.00409735
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x170]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x18], esi
call fcn.00402190
test al, al
je 0x4037bb
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.SoftwareGuid
push str.Version
push eax
lea ecx, [ebp + 0x1fc]
mov byte [esp + 0x54], 0
call fcn.00409735
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x180]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, edx
push ebx
call fcn.00402190
test al, al
je 0x40383a
mov edi, dword [ebp + 0x184]
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 + 0x184]
mov dword [ebp + 0x188], 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.Manufacturer
push str.Version
push eax
lea ecx, [ebp + 0x1fc]
call fcn.00409735
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebp + 0x160]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, esi
push ebx
call fcn.00402190
test al, al
je 0x4038b1
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 + 0x164]
mov dword [ebp + 0x168], 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.RegistryManufacturer
push str.Version
push eax
lea ecx, [ebp + 0x1fc]
call fcn.00409735
test eax, eax
je 0x40392e
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x190]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x18], esi
call fcn.00402190
test al, al
je 0x403948
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
jmp 0x403948
mov eax, dword [0x42b4dc]
lea ecx, [ebp + 0x190]
push eax
lea eax, [ebp + 0x160]
push 0
push eax
call fcn.00404340
mov eax, dword [ebp + 0x158]
test eax, eax
je 0x403c52
mov eax, dword [ebp + 0x168]
test eax, eax
je 0x403c52
mov cl, byte [0x439698]
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.0040abed
lea ebx, [ebp + 0x114]
lea ecx, [ebp + 0x1c8]
push ebx
push 0x432918
mov dword [ebp + 0x110], eax
call fcn.0040a7f2
test eax, eax
je 0x403a6e
mov eax, dword [ebp + 0x11c]
mov ecx, dword [ebx + 8]
lea esi, [eax - 1]
cmp ecx, esi
jb 0x4039f2
mov eax, dword [ebx + 4]
test eax, eax
je 0x4039f2
mov al, byte [eax - 1]
test al, al
je 0x4039e0
cmp al, 0xff
je 0x4039e0
push 0
push ecx
mov ecx, ebx
call fcn.00402190
mov eax, dword [ebx + 4]
test eax, eax
je 0x4039eb
mov byte [eax - 1], 0xff
mov eax, dword [ebx + 4]
add eax, esi
jmp 0x4039f7
mov eax, 0x42b4d8
cmp byte [eax], 0x5c
je 0x403bff
mov edi, 0x4329f8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x42b4dc]
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 0x403a25
call fcn.00421686
test esi, esi
jbe 0x403bff
mov eax, dword [ebx + 8]
push 0
add eax, esi
mov ecx, ebx
push eax
mov dword [esp + 0x18], eax
call fcn.00402190
test al, al
je 0x403bff
mov edi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, esi
add edi, eax
mov eax, ecx
mov esi, 0x4329f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x403bf4
mov ax, word [ebp + 0x104]
mov ecx, dword [ebp + 0xec]
push eax
lea edx, [esp + 0x144]
push 0x104
push edx
push str.INSTALLDIR
push 0x432908
lea esi, [ebp + 0x1fc]
push ecx
mov ecx, esi
call fcn.00409735
test eax, eax
jne 0x403b0b
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.00409735
test eax, eax
jne 0x403b0b
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.00409735
test eax, eax
je 0x403bff
lea eax, [esp + 0x140]
test eax, eax
je 0x403b64
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403b64
cmp byte [esp + ecx + 0x13f], 0x5c
je 0x403b64
mov edi, 0x4329f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x140]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
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, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 0xfffffffd
mov dword [esp + 0x10], esi
jbe 0x403b85
call fcn.00421686
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x403baa
mov al, byte [ecx - 1]
test al, al
je 0x403baa
cmp al, 0xff
je 0x403baa
test esi, esi
jne 0x403bce
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00402110
jmp 0x403bff
test esi, esi
jne 0x403bb9
push 1
mov ecx, ebx
call fcn.00402110
jmp 0x403bff
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x403bc5
cmp eax, esi
jae 0x403bd6
push 1
mov ecx, ebx
call fcn.00402110
push esi
mov ecx, ebx
call fcn.004022c0
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 4]
mov ecx, eax
lea esi, [esp + 0x140]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
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.0040ab4b
mov dword [ebp + 0x138], eax
lea eax, [ebp + 0x124]
push eax
push 0x4328f8
lea ecx, [ebp + 0x1c8]
call fcn.0040a7f2
mov dword [ebp + 0x134], eax
mov eax, dword [ebp + 0x110]
test eax, eax
je 0x403c43
mov dword [ebp + 0x10c], 1
mov ecx, esi
call fcn.0040ab3d
mov dword [ebp + 0x14c], eax
jmp 0x403c78
push str.Either_manufacturer_or__productSeries_is_empty._n
push 8
push 0x4398a0
call fcn.004011e0
add esp, 0xc
mov dword [ebp + 0xc0], 0x643
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x30]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0x558], 0xffffffff
je 0x403ca9
mov al, byte [ecx - 1]
test al, al
je 0x403c9f
cmp al, 0xff
je 0x403c9f
dec al
mov byte [ecx - 1], al
jmp 0x403ca9
dec ecx
push ecx
call fcn.00423fbf
add esp, 4
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x28]
jmp 0x403cfb
push str.Cannot_init_the_factory_n
push 8
push 0x4398a0
call fcn.004011e0
add esp, 0xc
mov dword [ebp + 0xc0], 0x643
jmp 0x403cf9
push str.GetDatFileName___returned_FALSE.__We_need_a_dat_file_to_run._n
push 8
push 0x4398a0
mov dword [ebp + 0xc0], 0x643
call fcn.004011e0
add esp, 0xc
xor esi, esi
push str.CSetupApp::InitInstance_n
push 4
push 0x4398a0
call fcn.004011e0
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x550]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x54c
ret 4