Function at 0x4010b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x402f16
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x404018]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
push esi
push edi
mov eax, dword [0x404018]
xor eax, esp
push eax
lea eax, [esp + 0x4a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
push 0x208
lea ecx, [esp + 0x290]
push 0
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], eax
call fcn.00402e7a
add esp, 0xc
push edi
lea edx, [esp + 0x290]
push str._s
push edx
call dword [0x403164]
add esp, 0xc
push 0x250
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00402e7a
add esp, 0xc
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x290]
push edx
call dword [0x40303c]
mov esi, eax
lea eax, [esp + 0x3c]
push eax
xor ebx, ebx
push esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [0x403028]
test eax, eax
je 0x401308
jmp 0x401180
test byte [esp + 0x3c], 0x10
je 0x4012e8
mov esi, dword [0x40302c]
push 0x403370
lea ecx, [esp + 0x6c]
push ecx
call esi
test eax, eax
je 0x4012e8
push 0x403374
lea edx, [esp + 0x6c]
push edx
call esi
test eax, eax
je 0x4012e8
lea esi, [esp + 0x68]
call fcn.00401900
mov ecx, eax
or ecx, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
je 0x4012e8
cmp dword [esp + 0x18], edx
ja 0x4012e8
jb 0x4011e8
cmp ebx, eax
jae 0x4012e8
mov edx, dword [0x404064]
mov eax, dword [edx + 0xc]
mov ecx, 0x404064
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x68]
push ecx
push edi
push str._s_s
lea edi, [esp + 0x30]
mov dword [esp + 0x4b4], 0
call fcn.00401650
mov edx, dword [0x404064]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x404064
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x4a8], 1
mov ebx, dword [esp + 0x24]
push ebx
push str._syygamebox.exe
lea edi, [esp + 0x24]
call fcn.00401650
mov esi, dword [esp + 0x24]
add esp, 8
push esi
call dword [0x403154]
test eax, eax
jne 0x40127e
mov byte [esp + 0x4a8], al
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4012b9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x68]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esp + 0x290]
push ecx
mov dword [esp + 0x20], edx
call dword [0x403024]
lea eax, [esi - 0x10]
mov byte [esp + 0x4a8], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4012c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x4a8], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x3c]
push ecx
push esi
call dword [0x403028]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x401180
push esi
call dword [0x403030]
or ebx, dword [esp + 0x18]
jne 0x401319
xor eax, eax
jmp 0x401338
lea edx, [esp + 0x28c]
push edx
push edi
mov edi, dword [esp + 0x30]
push str._s_s
call fcn.00401650
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x4a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x488]
xor ecx, esp
call fcn.00402392
mov esp, ebp
pop ebp
ret