Function at 0x4724cf
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e1a8e
call fcn.004d0500
sub esp, 0x124
mov eax, dword [0x52d320]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x15c], bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xdc], edi
jne 0x472508
mov al, 1
jmp 0x472a45
lea ecx, [ebp - 0x80]
call dword [0x4ea6b0]
lea eax, [ebp - 0x80]
push eax
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00471a76
mov ecx, esi
call fcn.0047211c
push eax
lea ecx, [ebp - 0x64]
call dword [0x4ea6a8]
push 0x4f9b58
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 1
call fcn.00407770
push edi
push eax
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 2
call fcn.00407770
push 0x4eb7e4
push eax
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 3
call fcn.00407770
add esp, 0x24
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call dword [0x4ea4e8]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
call dword [0x4ea4f8]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 2
call dword [0x4ea4f8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 1
call dword [0x4ea4f8]
lea ecx, [ebp - 0x64]
call dword [0x4ea6a4]
push eax
call dword [0x4eaadc]
test eax, eax
jne 0x4725d3
lea eax, [ebp - 0x64]
push eax
push edi
mov ecx, esi
call fcn.00471a32
mov edi, 0x4f9b44
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00407770
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.00407770
add esp, 0x18
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x48]
call dword [0x4ea6a4]
push eax
call fcn.00408a08
add esp, 0xc
lea ecx, [ebp - 0x2c]
call dword [0x4ea6a4]
mov ecx, dword [esi + 0x7c]
push eax
push dword [ebp - 0xdc]
call fcn.0047de1a
push dword [ebp - 0xdc]
mov ecx, dword [esi + 0x7c]
call fcn.0047d919
mov edi, eax
cmp edi, ebx
jne 0x472653
mov byte [ebp - 0xd5], bl
jmp 0x472a0c
lea ecx, [ebp - 0xb8]
call dword [0x4ea6b0]
lea eax, [ebp - 0xb8]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.0047c56a
cmp dword [ebp - 0xa4], ebx
jbe 0x47270a
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040f621
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 7
call dword [0x4ea4f8]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040f621
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 7
call dword [0x4ea4f8]
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x48]
call dword [0x4ea6a4]
push eax
call fcn.00408a08
add esp, 0xc
lea ecx, [ebp - 0x9c]
call dword [0x4ea6b0]
lea eax, [ebp - 0x9c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.0047c57e
cmp dword [ebp - 0x88], ebx
jbe 0x4727c1
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040f621
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call dword [0x4ea4f8]
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040f621
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call dword [0x4ea4f8]
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x48]
call dword [0x4ea6a4]
push eax
call fcn.00408a08
add esp, 0xc
lea ecx, [ebp - 0xd4]
call dword [0x4ea6b0]
lea eax, [ebp - 0xd4]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.0047c592
cmp dword [ebp - 0xc0], ebx
jbe 0x472878
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040f621
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
call dword [0x4ea4f8]
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040f621
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
call dword [0x4ea4f8]
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x48]
call dword [0x4ea6a4]
push eax
call fcn.00408a08
add esp, 0xc
mov esi, str.startup.lua
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00407770
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
call dword [0x4ea4f8]
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00407770
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
call dword [0x4ea4f8]
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x48]
call dword [0x4ea6a4]
push eax
call fcn.00408a08
push dword [ebp - 0xdc]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00407770
mov esi, 0x4f9b20
push esi
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x12
call fcn.00407770
add esp, 0x24
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x12
call dword [0x4ea4f8]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xd
call dword [0x4ea4f8]
push dword [ebp - 0xdc]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00407770
push esi
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x14
call fcn.00407770
add esp, 0x18
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x2c]
call dword [0x4ea4e8]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x14
call dword [0x4ea4f8]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xd
call dword [0x4ea4f8]
push ebx
lea ecx, [ebp - 0x2c]
call dword [0x4ea6a4]
push eax
lea ecx, [ebp - 0x48]
call dword [0x4ea6a4]
push eax
call fcn.00408a08
mov eax, dword [edi]
add esp, 0xc
push edi
call dword [eax + 8]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xa
call dword [0x4ea4f8]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call dword [0x4ea4f8]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call dword [0x4ea4f8]
mov byte [ebp - 0xd5], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call dword [0x4ea4f8]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [0x4ea4f8]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call dword [0x4ea4f8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call dword [0x4ea4f8]
mov al, byte [ebp - 0xd5]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0557
leave
ret 4