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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f633
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5cb464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push 1
push 0x81
push eax
mov dword [ebp - 0x64], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x60], edi
cmp edi, 0xffffffff
je 0x49106e
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], vtable.std::_Func_impl_no_alloc_class__lambda_d2e97494e408a74d76c6dde28a0d3861___void___.0
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x38], esi
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.00492bb0
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x490f22
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x90]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x6c], esi
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 2
push eax
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, eax
test esi, esi
jne 0x490f4e
mov dword [ebp - 4], 3
jmp 0x49104a
cmp dword [ebp - 0x30], 0
jle 0x490f60
mov dword [ebp - 4], 4
jmp 0x49104a
mov edi, dword [ebp - 0x34]
test edi, edi
jne 0x490f73
mov dword [ebp - 4], 5
jmp 0x49104a
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00433fc0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x2c]
push edi
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x491039
cmp edi, dword [ebp - 0x14]
jne 0x491039
mov eax, dword [ebp - 0x64]
mov esi, 1
movups xmm1, xmmword [ebp - 0x2c]
mov byte [ebp - 4], 2
movq xmm2, qword [ebp - 0x1c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov edx, dword [ebp - 0x18]
movups xmmword [eax], xmm1
movq qword [eax + 0x10], xmm2
cmp edx, 0x10
jb 0x49101e
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x491014
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x49108d
push edx
push ecx
call fcn.0046956a
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 8
jmp 0x49104a
lea ecx, [ebp - 0x2c]
xor esi, esi
call fcn.004104b0
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x49106e
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x49106e
mov edx, dword [ecx]
lea eax, [ebp - 0x5c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046997a
mov esp, ebp
pop ebp
ret 8
call fcn.004d5908
int3