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

Disassembly:
mov eax, 0x1001c
call fcn.004a5b80
mov edx, dword [esp + 0x1002c]
push ebx
push ebp
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49d096
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x14
ja 0x49d096
mov eax, dword [esp + 0x10034]
xor esi, esi
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 0x49d096
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 + 0x10040]
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x49ce2b
shr eax, 1
mov dword [esp + 0x1c], 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 0x49ce60
inc ecx
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x10030]
push ebp
call fcn.0048f710
add esp, 4
test edi, edi
jbe 0x49cff6
mov dword [esp + 0x18], 0
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10040]
test eax, eax
jne 0x49cf9b
cmp esi, dword [esp + 0x1c]
je 0x49cfb8
lea eax, [esp + 0x14]
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 + 0x18]
test eax, eax
jne 0x49cf14
mov edi, dword [esp + 0x1003c]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49cf14
mov ebp, dword [esp + 0x1003c]
lea eax, [esp + 0x8054]
sub ebp, eax
mov edi, dword [esp + 0x1003c]
lea eax, [esp + edx + 0x8054]
inc edx
mov cl, byte [eax + ebp]
mov byte [eax], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x49ceeb
mov ebp, dword [esp + 0x10030]
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 0x49d08f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x49ce80
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 0x49d0a6
push eax
mov eax, edi
lea edx, [esp + 0x18]
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 0x49d082
mov eax, dword [esp + 0x10044]
test eax, eax
jne 0x49cea6
mov eax, dword [esp + 0x1c]
shr eax, 1
cmp esi, eax
jne 0x49cea6
lea ecx, [esp + 0x14]
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 0x49cf38
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 + 0x18]
push ecx
push edx
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x1003c]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x49d070
lea eax, [esp + 0x8054]
sub esi, eax
mov edi, dword [esp + 0x1003c]
lea eax, [esp + edx + 0x8054]
inc edx
mov cl, byte [esi + eax]
mov byte [eax], cl
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x49d047
mov ebp, dword [esp + 0x10030]
mov eax, dword [esp + 0x10038]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
push ebp
call fcn.0048f970
add esp, 0x10
test eax, eax
jne 0x49d0a6
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