Function at 0x40a3ea
Capabilities:
Check if file exists

Disassembly:
push 0x210
mov eax, 0x52c984
call fcn.00512375
xor bl, bl
cmp dword [ebp + 8], 0
mov edi, ecx
jne 0x40a577
push 0x59179c
lea eax, [ebp - 0x21c]
push 0x59176c
push eax
call fcn.00401bb3
and dword [ebp - 4], 0
add esp, 8
lea eax, [ebp - 0x21c]
mov ecx, esp
mov dword [ebp - 0x214], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 1
lea eax, [ebp - 0x210]
push eax
push str.LaunchVersion
push str.VERSION
mov byte [ebp - 4], bl
call fcn.004123bc
add esp, 0x10
call fcn.00414e89
push eax
lea ecx, [ebp - 0x218]
call fcn.0040131c
mov byte [ebp - 4], 3
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push str.ini_version:__s
push eax
call fcn.00401b9f
pop ecx
pop ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x214], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
call fcn.00402f79
mov esi, 0x53f451
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00515bf3
add esp, 0xc
test eax, eax
jne 0x40a4fc
mov ecx, dword [0x591720]
push 8
lea eax, [ebp - 0x214]
push eax
inc bl
call fcn.0040efeb
mov byte [ebp - 4], 5
mov eax, dword [eax]
push 0
push esi
push eax
mov ecx, edi
call fcn.0041e1dc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x214]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x40a519
lea eax, [edi + 0x7e8]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00515bf3
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
mov ecx, dword [0x591580]
call fcn.00401000
test eax, eax
je 0x40a52a
xor bl, bl
cmp dword [edi + 0xa14], 3
jl 0x40a556
push ecx
mov ecx, esp
mov dword [ebp - 0x214], esp
push str.m_nUpdateLaunchCount___3
call fcn.00401d42
mov byte [ebp - 4], 7
mov byte [ebp - 4], 3
call fcn.00402f79
pop ecx
mov bl, 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x218]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
jmp 0x40a68f
cmp dword [ebp + 8], 1
jne 0x40a697
push 0x591790
lea eax, [ebp - 0x218]
push 0x59176c
push eax
call fcn.00401bb3
mov dword [ebp - 4], 0xa
add esp, 8
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x214], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x210]
push eax
push str.GameVersion
push str.VERSION
mov byte [ebp - 4], 0xa
call fcn.004123bc
mov esi, 0x53f451
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00515bf3
add esp, 0x18
test eax, eax
jne 0x40a627
mov ecx, dword [0x591720]
push 8
lea eax, [ebp - 0x214]
push eax
mov bl, 1
call fcn.0040efeb
mov byte [ebp - 4], 0xc
mov eax, dword [eax]
push 0
push esi
push eax
mov ecx, edi
call fcn.0041e1dc
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x214]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x40a644
add edi, 0x5e8
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00515bf3
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
inc bl
push 0x5917a8
lea eax, [ebp - 0x21c]
push 0x59176c
push eax
call fcn.00401bb3
add esp, 0xc
mov byte [ebp - 4], 0xe
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40a673
xor bl, bl
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x218]
add ecx, 0xfffffff0
call fcn.004010d2
mov al, bl
call fcn.005123f8
ret 4