Function at 0x439820
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov eax, 0x1608
call fcn.004ab4d0
mov eax, dword [0x51c080]
xor eax, esp
mov dword [esp + 0x1604], eax
push ebp
push esi
push 0x200
lea ebp, [edi + 0x10c34]
push 0
push ebp
call fcn.004ab450
push 0x800
lea eax, [esp + 0x61c]
push 0
push eax
call fcn.004ab450
push 0x800
lea ecx, [esp + 0xe28]
push 0
push ecx
call fcn.004ab450
push 0x200
lea edx, [esp + 0x34]
push 0
push edx
call fcn.004ab450
push str.VERSION.VER
lea esi, [edi + 0x404]
push esi
push 0x4dd780
lea eax, [esp + 0xe48]
push 0x400
push eax
call fcn.004a9ca9
lea eax, [esp + 0xe50]
add esp, 0x44
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4398b6
sub eax, edx
sar eax, 1
lea edx, [esp + 0x60c]
je 0x4398f1
lea ecx, [edi + 4]
push ecx
push 0x4f0c80
push 0x400
push edx
lea eax, [esp + 0xe1c]
push eax
mov ecx, 0x527d38
call fcn.00459000
jmp 0x43990c
push 0x3ff
lea ecx, [esp + 0xe10]
push ecx
push 0x400
push edx
call fcn.004a9be0
add esp, 0x10
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x610]
push eax
call ebx
test eax, eax
jne 0x4399a6
push str.CD.VER
push esi
push 0x4dd780
lea ecx, [esp + 0xe1c]
push 0x400
push ecx
call fcn.004a9ca9
lea eax, [esp + 0xe24]
add esp, 0x14
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439950
sub eax, edx
sar eax, 1
lea eax, [esp + 0x610]
je 0x43998b
lea edx, [edi + 4]
push edx
push 0x4f0c80
push 0x400
push eax
lea ecx, [esp + 0xe20]
push ecx
mov ecx, 0x527d38
call fcn.00459000
jmp 0x4399a6
push 0x3ff
lea edx, [esp + 0xe14]
push edx
push 0x400
push eax
call fcn.004a9be0
add esp, 0x10
lea ecx, [esp + 0x610]
push ecx
call ebx
test eax, eax
pop ebx
je 0x439b94
push 0x200
lea edx, [esp + 0x410]
push 0
push edx
call fcn.004ab450
push 0x200
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.004ab450
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x18
lea ecx, [esp + 0x60c]
push ecx
push 0x100
lea edx, [esp + 0x414]
push edx
push 0x4dd578
push str.CORE
push str.Version
call esi
test eax, eax
jne 0x439a6b
lea eax, [esp + 0x60c]
push eax
push str.Getting_Core_version_from_version_file___s__was_failed__
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
lea ecx, [esp + 0x60c]
push ecx
push 0x100
lea edx, [esp + 0x14]
push edx
push 0x4dd578
push str.version
push str.Version
call esi
test eax, eax
jne 0x439b94
lea eax, [esp + 0x60c]
push eax
push str.Getting_version_from_version_file___s__was_failed__
jmp 0x439b87
lea ecx, [esp + 0x60c]
push ecx
push 0x100
lea edx, [esp + 0x214]
push edx
push 0x4dd578
push str.SCRIPT
push str.Version
call esi
test eax, eax
jne 0x439ac3
lea eax, [esp + 0x60c]
push eax
push str.Getting_Scrip_version_from_version_file___s__was_failed__
mov ecx, 0x527b30
call fcn.00449000
push 0x200
lea ecx, [esp + 0x218]
push 0
push ecx
call fcn.004ab450
add esp, 0x14
push 0x200
lea edx, [esp + 0x10]
push 0
push edx
call fcn.004ab450
lea eax, [esp + 0x418]
push 0x100
push eax
call fcn.004aa61b
lea ecx, [esp + 0x420]
push 0x4eaadc
push ecx
call fcn.004a9b82
add esp, 0x1c
test eax, eax
je 0x439b7a
push 0xff
add eax, 4
push eax
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.004a9be0
lea eax, [esp + 0x21c]
push 0x100
push eax
call fcn.004aa61b
lea ecx, [esp + 0x224]
push 0x4eaadc
push ecx
call fcn.004a9b82
mov esi, eax
add esp, 0x20
test esi, esi
je 0x439b94
push 0xff
push 0x4eaae4
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.004a9dea
push 0xff
add esi, 4
push esi
lea eax, [esp + 0x24]
push 0x100
push eax
call fcn.004a9dea
add esp, 0x20
jmp 0x439b94
lea ecx, [esp + 0x40c]
push ecx
push 0x4eaae8
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
lea eax, [esp + 0xc]
lea edx, [eax + 2]
jmp 0x439ba0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439ba0
sub eax, edx
sar eax, 1
jne 0x439be9
lea edx, [edi + 0xd018]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x439bc0
sub eax, esi
sar eax, 1
je 0x439be9
push 0xff
push edx
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.004a9be0
add esp, 0x10
push 0xff
lea eax, [esp + 0x10]
push eax
push 0x100
push ebp
call fcn.004a9be0
mov ecx, dword [esp + 0x161c]
add esp, 0x10
pop esi
pop ebp
xor ecx, esp
call fcn.004a998e
add esp, 0x1608
ret