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

Disassembly:
mov eax, 0x1001c
call fcn.004a5b80
push ebx
push ebp
mov eax, dword [esp + 0x1002c]
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x492627
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push esi
push 0x200
push edx
push eax
call fcn.004a5e00
mov ecx, dword [esp + 0x1003c]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x49245f
shr eax, 1
mov dword [esp + 0x14], eax
mov edi, eax
shr edi, 7
mov ecx, edi
mov edx, edi
shl ecx, 0x10
sub ecx, edi
mov dword [esp + 0x20], edi
shl ecx, 7
add ecx, eax
shl ecx, 9
shr ecx, 9
shl edx, 7
add edx, ecx
mov dword [esp + 0x10], ecx
shl edx, 9
shl eax, 9
cmp eax, edx
jbe 0x492494
inc ecx
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x10030]
push ebp
call fcn.0048f710
add esp, 4
test edi, edi
jbe 0x4925d0
mov dword [esp + 0x1c], 0
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1003c]
test eax, eax
jne 0x492575
cmp esi, dword [esp + 0x14]
je 0x492592
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x34]
push 0x10000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10038]
lea edx, [esp + 0x2c]
push edx
lea ecx, [esi + eax]
push ecx
push 0x80
push ebp
call fcn.0048f970
add esp, 0x10
add esi, 0x80
test eax, eax
je 0x492620
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x4924b4
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x492637
push eax
mov eax, edi
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x30]
shl eax, 9
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10038]
lea edx, [esp + 0x2c]
add esi, eax
push edx
push esi
push edi
jmp 0x492613
mov eax, dword [esp + 0x10040]
test eax, eax
jne 0x4924da
mov eax, dword [esp + 0x14]
shr eax, 1
cmp esi, eax
jne 0x4924da
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x34]
push 0x10000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10038]
lea eax, [esp + 0x7e2c]
push eax
lea edx, [esi + ecx]
push edx
push 0x41
push ebp
call fcn.0048f970
add esp, 0x10
add esi, 0x41
jmp 0x492516
mov edx, dword [esp + 0x10]
xor eax, eax
shl edx, 9
mov ecx, edx
lea edi, [esp + 0x2c]
mov esi, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
push ecx
push edx
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10038]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ecx
push edx
push ebp
call fcn.0048f970
add esp, 0x10
test eax, eax
jne 0x492637
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xe8
pop ebx
add esp, 0x1001c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1001c
ret