Function at 0x480970
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b284c
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x5f8800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [0x5c8160]
lea edi, [ecx + 0x186ef8]
mov word [ebp - 0x104], ax
mov esi, edi
mov al, byte [0x5c8162]
mov ebx, 0x12c
mov byte [ebp - 0x102], al
mov ecx, dword [esi]
test ecx, ecx
je 0x4809cf
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x4809c3
push 0x78
lea eax, [ebp - 0x100]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x78
lea eax, [ebp - 0x88]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push str.GameMsgList
lea eax, [ebp - 0x100]
push 0x78
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy_s
push str.contents
lea eax, [ebp - 0x88]
push 0x78
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x88]
push 0x78
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push 0x5c7568
lea eax, [ebp - 0x88]
push 0x78
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x48
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x88]
push 0x78
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
push str..txt
lea eax, [ebp - 0x88]
push 0x78
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat_s
add esp, 0x18
lea eax, [ebp - 0x88]
push ebx
push ebx
push 3
push ebx
push ebx
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 0x108], ebx
cmp esi, 0xffffffff
je 0x480aab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c45dc
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s
add esp, 0xc
test eax, eax
jne 0x480bae
lea esi, [ebx + 1]
push esi
call fcn.005aa4da
push esi
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x110], ebx
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x10c]
push 1
push dword [ebp - 0x108]
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
push dword [ebp - 0x10c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
push 0x114
call fcn.005aa520
add esp, 0x28
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x480b38
lea ecx, [ebp - 0x104]
push ecx
push ebx
mov ecx, eax
call fcn.00587a70
mov ebx, eax
jmp 0x480b3a
xor ebx, ebx
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
call fcn.00587b30
mov esi, eax
test esi, esi
je 0x480b94
nop
push 0x1c
call fcn.005aa520
add esp, 4
mov dword [ebp - 0x108], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x480b79
push 0
push esi
push 0
mov ecx, eax
call fcn.00586d00
jmp 0x480b7b
xor eax, eax
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
call fcn.00587b30
mov esi, eax
add edi, 4
test esi, esi
jne 0x480b50
test ebx, ebx
je 0x480ba0
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
push dword [ebp - 0x110]
call fcn.005aa4e3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005aa550
mov esp, ebp
pop ebp
ret