Function at 0x474645
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e37de
call fcn.004d1ec0
sub esp, 0x124
mov eax, dword [0x52f220]
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 0x47467e
mov al, 1
jmp 0x474bbb
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.00473bdc
mov ecx, esi
call fcn.0047427f
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 0x4fbae0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 1
call fcn.00407691
push edi
push eax
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 2
call fcn.00407691
push 0x4ed9a8
push eax
lea eax, [ebp - 0x130]
push eax
mov byte [ebp - 4], 3
call fcn.00407691
add esp, 0x24
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call dword [0x4ec4ec]
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 0x474749
lea eax, [ebp - 0x64]
push eax
push edi
mov ecx, esi
call fcn.00473b98
mov edi, 0x4fbacc
push edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00407691
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call fcn.00407691
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.00408921
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.0047feb7
push dword [ebp - 0xdc]
mov ecx, dword [esi + 0x7c]
call fcn.0047f9b6
mov edi, eax
cmp edi, ebx
jne 0x4747c9
mov byte [ebp - 0xd5], bl
jmp 0x474b82
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.0047e6c7
cmp dword [ebp - 0xa4], ebx
jbe 0x474880
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00410e0e
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call dword [0x4ec4ec]
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.00410e0e
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call dword [0x4ec4ec]
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.00408921
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.0047e6db
cmp dword [ebp - 0x88], ebx
jbe 0x474937
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00410e0e
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xb
call dword [0x4ec4ec]
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.00410e0e
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xc
call dword [0x4ec4ec]
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.00408921
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.0047e6ef
cmp dword [ebp - 0xc0], ebx
jbe 0x4749ee
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00410e0e
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xe
call dword [0x4ec4ec]
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.00410e0e
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call dword [0x4ec4ec]
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.00408921
add esp, 0xc
mov esi, str.startup.lua
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.00407691
add esp, 0xc
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call dword [0x4ec4ec]
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.00407691
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call dword [0x4ec4ec]
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.00408921
push dword [ebp - 0xdc]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00407691
mov esi, 0x4fbaa8
push esi
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x12
call fcn.00407691
add esp, 0x24
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x13
call dword [0x4ec4ec]
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.00407691
push esi
push eax
lea eax, [ebp - 0xf8]
push eax
mov byte [ebp - 4], 0x14
call fcn.00407691
add esp, 0x18
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x2c]
call dword [0x4ec4ec]
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.00408921
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.004d1f17
leave
ret 4