Function at 0x40f150
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x111c]
mov eax, 0x111c
call fcn.00460740
push 0xffffffffffffffff
push 0x46d2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x493350]
xor eax, ebp
mov dword [ebp + 0x1118], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x1140]
mov eax, dword [ebp + 0x1124]
mov ebx, dword [ebp + 0x1128]
mov edi, dword [ebp + 0x112c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x1134]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0x113c]
mov dword [ebp - 0x74], edx
mov edx, dword [0x49cb64]
mov dword [ebp - 0x20], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x60], ecx
mov ecx, 0x49cb64
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x70], edi
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f1f0
sub eax, edx
sar eax, 1
jne 0x40f255
mov ebx, str.Authenticate
lea eax, [ebp - 0x14]
call fcn.0040ed90
mov ecx, edi
lea ebx, [ebp - 0x78]
call fcn.0040db00
mov byte [ebp - 4], 2
mov eax, dword [eax]
test eax, eax
jne 0x40f2cc
xor edi, edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f24b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov dword [ebp - 0x5c], edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, 3
je 0x40f263
mov byte [ebp - 0x68], 0
cmp esi, 2
jne 0x40f267
mov byte [ebp - 0x68], 1
mov edx, dword [0x49cb64]
mov eax, dword [edx + 0xc]
mov ecx, 0x49cb64
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x1c]
mov bl, 4
push edx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040df40
add esp, 8
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0040fae0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f2c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 3
jmp 0x40f2fa
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
jne 0x40f228
push 0x8007000e
call fcn.0040b530
mov dword [ebp - 4], 3
mov eax, 0x40f2f4
ret
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
je 0x40f30e
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f359
cmp byte [ebp - 0x68], 0
je 0x40f359
lea ecx, [ebp - 0x1c]
push 0
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040df40
add esp, 8
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 7
call fcn.0040fae0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x18]
xor esi, esi
mov ebx, str.Start_Roblox.exe
lea eax, [ebp - 0x14]
call fcn.0040ed90
push 0xffe
xor ebx, ebx
lea edx, [ebp + 0x11a]
xor ecx, ecx
push ebx
push edx
mov word [ebp + 0x118], cx
call fcn.00450ab0
add esp, 0xc
cmp esi, 3
je 0x40f3e9
cmp esi, 2
je 0x40f3e9
push str._play
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edx, dword [ebp - 0x60]
cmp byte [ebp + 0x1138], bl
jne 0x40f3ab
mov edx, str.nonHidden
mov ecx, dword [ebp - 0x20]
cmp byte [ebp + 0x1130], bl
jne 0x40f3bb
mov ecx, str.nonSilent
push edx
mov edx, dword [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x5c]
push ecx
mov ecx, dword [ebp - 0x6c]
push edx
push ecx
push eax
push edi
lea edx, [ebp + 0x118]
push str.__s___s__s__s__s__s__s
push edx
mov edx, 0x800
call fcn.0040b370
add esp, 0x24
jmp 0x40f77d
lea eax, [ebp]
call fcn.00402ab0
mov eax, str._build
mov byte [ebp - 4], 8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f400
sub eax, edx
push eax
push str._build
lea ecx, [ebp + 0xa8]
call fcn.00407d10
mov esi, dword [ebp - 0x6c]
xor eax, eax
mov word [ebp - 0x38], ax
mov eax, esi
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f432
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [ebp - 0x3c]
call fcn.00408070
mov ecx, esi
lea edi, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.004316b9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 0xa
call fcn.00407320
cmp dword [ebp - 0x40], 0x10
jb 0x40f47c
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0044cce2
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
jb 0x40f49f
mov edx, dword [ebp - 0x38]
push edx
call fcn.0044cce2
add esp, 4
xor eax, eax
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x70]
mov ecx, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40f4b7
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x3c]
call fcn.00408070
mov ecx, esi
lea edi, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.004316b9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 0xc
call fcn.00407320
cmp dword [ebp - 0x40], 0x10
jb 0x40f4ff
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0044cce2
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
jb 0x40f522
mov edx, dword [ebp - 0x38]
push edx
call fcn.0044cce2
add esp, 4
xor eax, eax
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x5c]
mov ecx, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40f540
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x3c]
call fcn.00408070
mov ecx, esi
lea edi, [ebp - 0x58]
mov byte [ebp - 4], 0xd
call fcn.004316b9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x38]
mov byte [ebp - 4], 0xe
call fcn.00407320
cmp dword [ebp - 0x40], 0x10
jb 0x40f588
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0044cce2
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
jb 0x40f5ab
mov edx, dword [ebp - 0x38]
push edx
call fcn.0044cce2
add esp, 4
mov eax, str._avatar
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f5b3
sub eax, edx
push eax
push str._avatar
lea ecx, [ebp + 0xc4]
call fcn.00407d10
cmp byte [ebp + 0x1130], bl
je 0x40f65c
xor eax, eax
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40f5f1
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x3c]
call fcn.00408070
mov ecx, esi
lea edi, [ebp - 0x58]
mov byte [ebp - 4], 0xf
call fcn.004316b9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 0x10
call fcn.00407320
cmp dword [ebp - 0x40], 0x10
jb 0x40f639
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0044cce2
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
jb 0x40f65c
mov edx, dword [ebp - 0x38]
push edx
call fcn.0044cce2
add esp, 4
cmp byte [ebp + 0x1138], bl
je 0x40f6f4
xor eax, eax
mov word [ebp - 0x38], ax
mov eax, dword [ebp - 0x60]
mov ecx, eax
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40f680
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x3c]
call fcn.00408070
mov ecx, esi
lea edi, [ebp - 0x58]
mov byte [ebp - 4], 0x11
call fcn.004316b9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x8c]
mov byte [ebp - 4], 0x12
call fcn.00407320
cmp dword [ebp - 0x40], 0x10
jb 0x40f6cb
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.0044cce2
add esp, 4
mov esi, 8
mov byte [ebp - 4], 8
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
cmp dword [ebp - 0x24], esi
jb 0x40f6f9
mov edx, dword [ebp - 0x38]
push edx
call fcn.0044cce2
add esp, 4
jmp 0x40f6f9
mov esi, 8
lea eax, [ebp]
push eax
lea ecx, [ebp + 0xfc]
push ecx
call fcn.0040e150
mov eax, dword [ebp + 0x100]
add esp, 8
cmp dword [ebp + 0x114], esi
jae 0x40f720
lea eax, [ebp + 0x100]
mov edx, dword [ebp - 0x18]
push eax
push edx
push str.__s___s
lea eax, [ebp + 0x118]
push 0x800
push eax
call fcn.0044dc8a
add esp, 0x14
cmp dword [ebp + 0x114], esi
jb 0x40f755
mov ecx, dword [ebp + 0x100]
push ecx
call fcn.0044cce2
add esp, 4
xor edx, edx
lea esi, [ebp]
mov dword [ebp + 0x114], 7
mov dword [ebp + 0x110], ebx
mov word [ebp + 0x100], dx
mov byte [ebp - 4], 3
call fcn.00402b40
mov edi, dword [ebp - 0x18]
movzx eax, byte [ebp + 0x1138]
mov ecx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x64]
push eax
push ecx
lea edx, [ebp + 0x118]
push edx
push str.Final_cmd___s__unideEventName___s__hidden___d
call fcn.00406fa0
lea eax, [ebp + 0x118]
add esp, 0x10
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f7b0
sub eax, edx
sar eax, 1
lea ecx, [ebp + 0x118]
mov ebx, eax
push ecx
lea eax, [ebp - 0x14]
call fcn.0040cdf0
lea edx, [ebp + 0x118]
push edx
call fcn.0040e070
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f7ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f825
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1118]
xor ecx, ebp
call fcn.0044cced
add ebp, 0x111c
mov esp, ebp
pop ebp
ret