Function at 0x579555
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 4]
test al, al
je 0x57956a
push str.A3DVSSRouteLoader::Load__one_route_has_been_loaded.
jmp 0x579830
mov edi, dword [esp + 0x30]
test edi, edi
je 0x57982b
cmp byte [edi], 0
je 0x57982b
push 0x5ceba0
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5795b5
mov ecx, dword [0x5e062c]
push edi
push str.A3DVSSRouteLoader::Load__Failed_to_open_file__s.
push ecx
call fcn.004c6d70
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x18
lea edx, [esp + 0x1c]
push 1
push edx
call edi
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp eax, 3
jne 0x579804
cmp dword [esp + 0x18], 0x56535346
jne 0x579804
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x30], edx
push ebx
mov dword [esi + 0x2c], eax
mov al, byte [esp + 0x38]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x2c]
push 0x10
lea edx, [esi + 0xc]
push 1
push edx
mov byte [esi + 0x1c], al
mov dword [esi + 0x38], ecx
call edi
mov eax, dword [esi + 0x2c]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
push ebx
jne 0x579656
call dword [sym.imp.MSVCRT.dll_fclose]
mov ecx, dword [0x5e062c]
push str.A3DVSSRouteLoader::Load__Not_enough_memory_for_section_information_table.
push ecx
call fcn.004c6d70
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esi + 0x2c]
lea edx, [eax + eax*2]
shl edx, 3
push edx
push 1
push ebp
call edi
mov eax, dword [esi + 0x2c]
xor edi, edi
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor edx, edx
add esp, 0x14
cmp eax, edx
mov dword [esi + 0x28], eax
jne 0x5796c2
mov edx, dword [0x5e062c]
push str.A3DVSSRouteLoader::Load__Not_enough_memory_for_section_information_table.
push edx
call fcn.004c6d70
add esp, 8
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, esi
call fcn.00579a40
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x30], edx
cmp eax, edx
jle 0x579724
lea ecx, [ebp + 8]
mov eax, dword [esi + 0x28]
mov ebp, dword [ecx - 8]
add eax, edx
add edx, 0x1c
add ecx, 0x18
mov dword [eax], ebp
mov ebp, dword [ecx - 0x1c]
mov dword [eax + 4], ebp
mov ebp, dword [ecx - 0x18]
mov dword [eax + 8], ebp
mov ebp, dword [ecx - 0x14]
mov dword [eax + 0xc], ebp
mov ebp, dword [ecx - 0x10]
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], 0
mov ebp, dword [ecx - 0x10]
add edi, ebp
mov ebp, dword [ecx - 0xc]
mov dword [eax + 0x18], ebp
mov eax, dword [ecx - 0xc]
mov ebp, dword [esi + 0x2c]
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x30]
inc eax
cmp eax, ebp
mov dword [esp + 0x30], eax
jl 0x5796d0
mov ebp, dword [esp + 0x10]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov al, byte [esp + 0x38]
add esp, 4
test al, al
je 0x5797ec
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
xor edi, edi
add esp, 4
cmp eax, edi
mov dword [esi + 0x24], eax
jne 0x579764
mov ecx, dword [0x5e062c]
push str.A3DVSSRouteLoader::Load__Not_enough_memory_for_compressed_vss_data.
push ecx
call fcn.004c6d70
add esp, 8
jmp 0x5796a5
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x30], edi
cmp eax, edi
jle 0x5797cc
mov dword [esp + 0x34], edi
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0x28]
add eax, edx
push 0
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x10]
lea ebp, [ecx + edx*4]
mov edx, dword [esi + 0x24]
add edx, edi
mov dword [eax + 0x14], edx
mov eax, dword [eax + 0xc]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + 0x24]
push ebx
push ebp
add ecx, edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov ecx, dword [esi + 0x2c]
add esp, 0x1c
add edi, ebp
inc eax
add edx, 0x1c
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jl 0x579773
xor edi, edi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [esi + 0x20], edi
mov dword [esi + 0x34], edi
mov byte [esi + 4], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret 8
xor edi, edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x34], edi
mov byte [esi + 4], 1
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1c
ret 8
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [0x5e062c]
push str.A3DVSSRouteLoader::Load__File_version_or_format_is_wrong.
push edx
call fcn.004c6d70
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
push str.A3DVSSRouteLoader::Load__Invalid_file_name.
mov eax, dword [0x5e062c]
push eax
call fcn.004c6d70
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8