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

Disassembly:
mov eax, 0x2001c
call fcn.004a5b80
push ebx
push ebp
mov eax, dword [esp + 0x2002c]
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x10], ebp
jne 0x49beeb
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0x2001c
ret
lea ecx, [esp + 0x24]
push ecx
push ebp
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 + 0x2003c]
mov dword [esp + 0x1c], eax
cmp ecx, esi
jne 0x49bf21
shr eax, 1
mov dword [esp + 0x1c], eax
mov ecx, eax
shr ecx, 7
mov edx, ecx
mov edi, ecx
shl edx, 0x10
sub edx, ecx
mov dword [esp + 0x20], ecx
shl edx, 7
add edx, eax
shl edx, 9
shr edx, 9
shl edi, 7
add edi, edx
mov dword [esp + 0x18], edx
shl edi, 9
shl eax, 9
cmp eax, edi
jbe 0x49bf56
inc edx
mov dword [esp + 0x18], edx
cmp ecx, esi
jbe 0x49c123
mov dword [esp + 0x10], esi
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x1002c]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x4000
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10030]
push eax
push 0x10000
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x20038]
xor esi, esi
lea edi, [ebx + edx]
mov ecx, dword [esp + 0x20030]
lea eax, [esp + 0x2c]
push eax
push edi
push 0x80
push ecx
call fcn.0048f830
add esp, 0x10
test eax, eax
jne 0x49bfd6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jge 0x49c10c
jmp 0x49bfa3
mov eax, dword [esp + 0x2003c]
test eax, eax
jne 0x49c0b3
cmp ebx, dword [esp + 0x1c]
je 0x49c0d0
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x2c]
lea esi, [esp + 0x1002c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x49c10c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add ebx, 0x80
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x49bf62
mov edx, dword [esp + 0x18]
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x1002c]
rep stosd dword es:[edi], eax
mov ecx, 0x4000
lea edi, [esp + 0x2c]
test edx, edx
rep stosd dword es:[edi], eax
jbe 0x49c1ee
lea ecx, [esp + 0x14]
push eax
shl edx, 9
push ecx
push edx
lea edx, [esp + 0x10038]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x20038]
xor esi, esi
lea edi, [ebx + eax]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20030]
lea ecx, [esp + 0x2c]
push ecx
push edi
push edx
push eax
call fcn.0048f830
add esp, 0x10
test eax, eax
jne 0x49c0f3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 5
jl 0x49c06f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0x2001c
ret
mov eax, dword [esp + 0x20040]
test eax, eax
jne 0x49bfef
mov edx, dword [esp + 0x1c]
shr edx, 1
cmp ebx, edx
jne 0x49bfef
mov eax, dword [esp + 0x14]
lea edi, [esp + 0x2c]
lea esi, [esp + 0x17e2c]
xor edx, edx
lea ecx, [eax - 0x7e00]
repe cmpsb byte [esi], byte es:[edi]
jne 0x49c10c
sub ebx, 0x3f
jmp 0x49c008
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x2c]
lea esi, [esp + 0x1002c]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x49c1ee
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0x2001c
ret
shl edx, 9
mov ecx, edx
xor eax, eax
mov ebx, ecx
lea edi, [esp + 0x1002c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [esp + 0x30]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10030]
push eax
push edx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x20038]
mov ebx, dword [esp + 0x20030]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push edi
push eax
push ebx
call fcn.0048f830
add esp, 0x10
test eax, eax
jne 0x49c1ba
push 0x64
call ebp
inc esi
cmp esi, 5
jl 0x49c17d
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0x2001c
ret
mov ecx, dword [esp + 0x14]
lea edi, [esp + 0x2c]
lea esi, [esp + 0x1002c]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x49c1ea
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xec
pop ebx
add esp, 0x2001c
ret
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2001c
ret