Function at 0x40a0f8
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x52c8ae
call fcn.0051230c
mov esi, ecx
call fcn.00414e89
push eax
lea ecx, [ebp - 0x14]
call fcn.0040131c
mov dword [ebp - 4], 1
call fcn.00414e89
push eax
lea ecx, [ebp - 0x10]
call fcn.0040131c
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
dec eax
je 0x40a262
dec eax
je 0x40a215
dec eax
je 0x40a182
dec eax
jne 0x40a2b9
push 0x591788
lea eax, [ebp + 8]
push 0x59176c
push eax
call fcn.00401bb3
add esp, 0xc
mov byte [ebp - 4], 0xd
add esi, 0x9fc
push esi
lea ecx, [ebp - 0x14]
call fcn.00408848
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408848
jmp 0x40a251
push 0x59178c
mov edi, 0x59176c
lea eax, [ebp + 8]
push edi
push eax
call fcn.00401bb3
mov byte [ebp - 4], 8
push 0x200
lea ebx, [esi + 0x5e8]
push 0
push ebx
call fcn.00512ea0
add esp, 0x14
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 9
push ebx
push str.GameVersion
push str.VERSION
mov byte [ebp - 4], 8
call fcn.004123bc
push 0x591790
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00401bb3
add esp, 0x1c
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x10]
call fcn.00408848
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004010d2
add esi, 0x9f4
push esi
lea ecx, [ebp - 0x14]
call fcn.00408848
jmp 0x40a251
add esi, 0x9f0
push esi
lea ecx, [ebp - 0x14]
call fcn.00408848
push 0x5917ac
lea eax, [ebp + 8]
push 0x59176c
push eax
call fcn.00401bb3
add esp, 0xc
mov byte [ebp - 4], 6
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
mov byte [0x58b551], 0
call fcn.00408848
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x40a2b9
push 0x7f2
lea eax, [esi + 0x7e8]
push 0x53f05c
push eax
call fcn.004090f7
push 0x59179c
lea eax, [ebp - 0x20]
push 0x59176c
push eax
call fcn.00401bb3
add esp, 0x18
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x10]
call fcn.00408848
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010d2
add esi, 0x9e8
push esi
lea ecx, [ebp - 0x14]
call fcn.00408848
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push str.download_from:
push eax
call fcn.00409e5f
mov byte [ebp - 4], 0xf
push str._to:
push eax
lea eax, [ebp + 8]
push eax
call fcn.00403093
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401bb3
add esp, 0x24
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x16
mov byte [ebp - 4], 0x14
call fcn.00402f79
mov esi, dword [ebp - 0x10]
pop ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40a359
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x14
call fcn.00412dc7
pop ecx
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 0
jle 0x40a39d
cmp dword [esi - 0xc], 0
jle 0x40a39d
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x18
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x19
mov ecx, dword [0x59159c]
mov byte [ebp - 4], 0x14
call fcn.00409f23
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.004010d2
call fcn.005123e4
ret 4