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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fbf4e
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
push ebx
push esi
push edi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
push 0
cmove eax, dword [str.._Script_Game_MonsterProtoType.txt]
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x6aa8b2
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push esi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x10], eax
call fcn.006dff04
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
test edi, edi
jne 0x6aa8f1
xor bl, bl
jmp 0x6aaa8f
mov dword [ebp - 0x38], edi
push 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6aaa82
mov eax, dword [edi]
add eax, 8
mov dword [ebp - 0x1c], eax
add eax, edi
mov dword [ebp - 0x18], eax
mov eax, dword [eax - 4]
push eax
mov dword [ebp + 8], eax
call fcn.006dff04
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x6aaa82
mov esi, edi
mov dword [ebp - 0x28], esi
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
push edi
push eax
push dword [ebp - 0x18]
call fcn.006a6140
mov ecx, dword [0x76a53c]
add esp, 0x10
push 2
push 3
push dword [ebp + 8]
push edi
call fcn.006b1330
mov ecx, dword [ebp + 8]
mov eax, 0xd41d41d5
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov edx, 0x230
shr ecx, 9
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], ecx
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x6aaa6c
push 0x6aa7b0
push dword [ebp - 0x10]
push 0x230
push eax
call fcn.0044ab80
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test eax, eax
je 0x6aaa72
cmp dword [ebx + 4], 0
mov dword [ebp - 0x10], 0
jbe 0x6aaa5c
xor edx, edx
mov esi, edi
mov eax, dword [ebp - 0x10]
mov ecx, 0x72
lea edi, [ebp - 0x268]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx]
lea esi, [ebp - 0x268]
add edi, edx
mov ecx, 0x72
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
lea edi, [ebp - 0xa0]
sub dword [ebp + 8], 0x1c8
add esi, 0x1c8
mov ecx, 0x1a
inc eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx]
lea esi, [ebp - 0xa0]
add edi, 0x1c8
mov dword [ebp - 0x10], eax
add edi, edx
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
add edx, 0x230
sub dword [ebp + 8], 0x68
add edi, 0x230
mov dword [ebp - 0x14], edi
cmp eax, dword [ebx + 4]
jb 0x6aa9e3
mov esi, dword [ebp - 0x28]
push esi
mov bl, 1
call fcn.006dfeff
mov esi, dword [ebp - 0x2c]
add esp, 4
jmp 0x6aaa84
mov dword [ebx], 0
push esi
xor bl, bl
call fcn.006dfeff
mov esi, dword [ebp - 0x2c]
add esp, 4
jmp 0x6aaa84
xor bl, bl
push dword [ebp - 0x30]
call fcn.006dfeff
add esp, 4
test esi, esi
je 0x6aaa9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4