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

Disassembly:
mov eax, 0x10068a88
call fcn.100575f8
sub esp, 0x8c
mov eax, dword [0x10084500]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0xffffffffffffffff
push dword [0x100859d0]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x7c], 0x1b7740
mov dword [ebp - 0x78], 0x36ee80
mov dword [ebp - 0x74], 0x6ddd00
mov dword [ebp - 0x70], 0xa4cb80
mov dword [ebp - 0x6c], 0x112a880
mov dword [ebp - 0x68], 0x1b77400
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10083700
lea ecx, [ebp - 0x4c]
call fcn.100015f3
push dword [0x100859d0]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x38], ebx
je 0x10025168
push ebx
sub esp, 0x1c
lea eax, [ebp - 0x4c]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.100015f3
lea eax, [ebp - 0x98]
push eax
call fcn.1000ea79
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.100014f5
push ebx
push 1
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.10001293
push ebx
push 1
sub esp, 0x1c
lea eax, [ebp - 0x4c]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.100015f3
lea eax, [ebp - 0x30]
push eax
call fcn.10050c4e
add esp, 0x28
cmp dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 0x4d], bl
je 0x1002510c
sub esp, 0x1c
push 7
pop ecx
mov edi, esp
sub esp, 0x1c
push 7
lea esi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
pop ecx
mov edi, esp
push 0x79
push ebx
lea esi, [ebp - 0x4c]
push 3
rep movsd dword es:[edi], dword [esi]
call fcn.10004566
mov eax, dword [ebp - 0x2c]
add esp, 0x44
cmp dword [ebp - 0x18], 0x10
jae 0x10025040
lea eax, [ebp - 0x2c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x5c], eax
je 0x1002510c
lea ecx, [ebp - 0x64]
push ecx
push eax
mov dword [ebp - 0x64], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.100556e2
mov esi, eax
cmp esi, ebx
pop ecx
je 0x100250dc
cmp dword [0x10083734], 0x10
mov eax, dword [0x10083720]
jae 0x10025093
mov eax, 0x10083720
push eax
call fcn.10057b49
push edi
push ebx
push esi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x60], ebx
call fcn.10056960
add esp, 0x10
push ebx
lea eax, [ebp - 0x60]
push eax
push edi
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100250d5
push dword [ebp - 0x60]
push esi
push dword [ebp - 0x54]
call fcn.10023620
add esp, 0xc
test al, al
je 0x100250d5
mov byte [ebp - 0x4d], 1
push esi
call fcn.10057617
pop ecx
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4d], bl
je 0x1002510c
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x100250f6
lea eax, [ebp - 0x2c]
push ebx
push ebx
push 0x10085a50
push eax
push str.open
push ebx
call dword [0x10085db8]
jmp 0x1002515d
mov eax, dword [0x100859c8]
mov eax, dword [ebp + eax*4 - 0x7c]
inc dword [0x100859c8]
push eax
push ebx
call fcn.10057f09
pop ecx
push edx
push eax
call fcn.1000d490
add esp, 0xc
cmp dword [0x100859c8], 6
jb 0x10025140
mov dword [0x100859c8], 5
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 8]
call fcn.10024eb8
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.10001293
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.10001293
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.100568ae
pop edi
pop esi
pop ebx
leave
ret