Function at 0x465160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.data
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.PAL.dll_PalSystemPathSet]
mov edi, dword [sym.imp.PAL.dll_PalGetFilePath]
add esp, 4
push str.archive.dat
call edi
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x108]
push str._sdata_s
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
jne 0x46522d
push str.archive.dat
call edi
push eax
lea eax, [ebp - 0x108]
push str._scsv_s
push eax
call ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
jne 0x46522d
push 0x40030
push str.error
push str.ArchiveData_Fail
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
inc eax
push 1
push eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x46527c
push 0x40030
push str.error
push str.ArchiveData_Memory_Allocate
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x210]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4652cd
push 0x40030
push str.error
push str.ArchiveData_Read_Fail
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2c
push ecx
push dword [ebp - 0x21c]
mov edx, ebx
lea ecx, [ebp - 0x108]
call fcn.004685d0
add esp, 0xc
test eax, eax
jne 0x46532a
push 0x40030
push str.error
push str.ArchiveData_Read_Fail
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x108]
push eax
call esi
push str._r_n__t
mov edi, eax
call esi
push eax
push edi
mov edx, str._r_n__t
lea ecx, [ebp - 0x108]
call fcn.00467e40
add esp, 8
lea edx, [ebp - 0x108]
xor edi, edi
push 0x7c
push ecx
push edi
lea ecx, [ebp - 0x20c]
call fcn.004685d0
add esp, 0xc
test eax, eax
je 0x465415
nop dword [eax]
cmp byte [ebp - 0x20c], 0
je 0x4653f4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.PAL.dll_PalSystemPathSet]
lea eax, [ebp - 0x20c]
add esp, 4
dec eax
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x4653a0
mov ecx, dword [str..pac]
mov dword [eax], ecx
mov cl, byte [0x4c1860]
mov byte [eax + 4], cl
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 8
mov esi, eax
lea eax, [ebp - 0x220]
push 0
push eax
push 4
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7c
push ecx
inc edi
lea edx, [ebp - 0x108]
push edi
lea ecx, [ebp - 0x20c]
call fcn.004685d0
add esp, 0xc
test eax, eax
jne 0x465380
push ebx
call dword [sym.imp.PAL.dll_PalMemoryFree]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0046d15f
mov esp, ebp
pop ebp
ret