Function at 0x473b8f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e1fd3
call fcn.004d1d50
sub esp, 0x124
mov eax, dword [0x52e400]
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 0x473bc8
mov al, 1
jmp 0x474105
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x80]
push eax
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004731c2
mov ecx, esi
call fcn.00473853
push eax
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0x4fd0a8
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 1
call fcn.00407aea
push edi
push eax
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 2
call fcn.00407aea
push 0x4ec814
push eax
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 3
call fcn.00407aea
add esp, 0x24
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call dword [0x4eb500]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x473c93
lea eax, [ebp - 0x64]
push eax
push edi
mov ecx, esi
call fcn.0047317e
mov edi, 0x4fd094
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00407aea
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.00407aea
add esp, 0x18
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00408d75
add esp, 0xc
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
mov ecx, dword [esi + 0x7c]
push eax
push dword [ebp - 0xdc]
call fcn.0047f64b
push dword [ebp - 0xdc]
mov ecx, dword [esi + 0x7c]
call fcn.0047f14a
mov edi, eax
cmp edi, ebx
jne 0x473d13
mov byte [ebp - 0xd5], bl
jmp 0x4740cc
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0xb8]
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.0047dd6d
cmp dword [ebp - 0xa4], ebx
jbe 0x473dca
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040fae0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040fae0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00408d75
add esp, 0xc
lea ecx, [ebp - 0x9c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0x9c]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xa
call fcn.0047dd81
cmp dword [ebp - 0x88], ebx
jbe 0x473e81
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040fae0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040fae0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00408d75
add esp, 0xc
lea ecx, [ebp - 0xd4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [ebp - 0xd4]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xd
call fcn.0047dd95
cmp dword [ebp - 0xc0], ebx
jbe 0x473f38
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040fae0
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0040fae0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00408d75
add esp, 0xc
mov esi, str.startup.lua
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00407aea
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00407aea
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00408d75
push dword [ebp - 0xdc]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00407aea
mov esi, 0x4fd070
push esi
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x12
call fcn.00407aea
add esp, 0x24
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x12
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push dword [ebp - 0xdc]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00407aea
push esi
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x14
call fcn.00407aea
add esp, 0x18
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x2c]
call dword [0x4eb500]
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0x14
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 0xd
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push ebx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call fcn.00408d75
mov eax, dword [edi]
add esp, 0xc
push edi
call dword [eax + 8]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [ebp - 0xd5], 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
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.004d1da7
leave
ret 4