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

Disassembly:
mov eax, dword [0x4ea2c4]
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ecx, dword [0x4ea304]
mov ebp, eax
mov ebx, dword [sym.imp.kernel32.dll_VirtualAlloc]
push 4
push 0x1000
push ecx
push 0
call ebx
mov ecx, dword [0x4ea304]
mov esi, eax
push ecx
push esi
call fcn.00482279
add esp, 8
push 0x104
push esi
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov edx, dword [0x4ea2cc]
xor eax, eax
cmp word [esi], ax
je 0x482321
nop word [eax + eax]
inc eax
cmp word [esi + eax*2], 0
jne 0x482319
cmp word [esi + eax*2 - 2], 0x5c
lea ecx, [esi + eax*2]
je 0x48233d
dec eax
xor edi, edi
mov word [ecx], di
cmp word [esi + eax*2 - 2], 0x5c
lea ecx, [esi + eax*2]
jne 0x48232c
mov cl, byte [edx]
test cl, cl
je 0x48235d
lea edi, [esi + eax*2]
nop dword [eax]
movsx ax, cl
lea edx, [edx + 1]
lea edi, [edi + 2]
mov word [edi - 2], ax
mov cl, byte [edx]
test cl, cl
jne 0x482349
push 0
push 0x80
push 3
push 0
push 1
push 1
push esi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x482527
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [0x4ea2f8]
mov esi, eax
push 4
push 0x1000
push ecx
push 0
call ebx
push 0
mov ebx, eax
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x482527
mov eax, dword [esp + 0x14]
xor edx, edx
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x4ea300]
add ebx, eax
mov edi, dword [ebx + 4]
lea eax, [ebx + 4]
add eax, 4
mov ecx, dword [ebx]
movd xmm0, edi
pshufd xmm1, xmm0, 0
test ecx, ecx
je 0x482443
cmp ecx, 0x10
jb 0x482431
mov esi, ecx
and esi, 0xfffffff0
nop dword [eax]
movups xmm0, xmmword [eax]
add edx, 0x10
paddd xmm0, xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [eax + 0x10]
paddd xmm0, xmm1
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
paddd xmm0, xmm1
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
paddd xmm0, xmm1
movups xmmword [eax + 0x30], xmm0
add eax, 0x40
cmp edx, esi
jb 0x4823f9
cmp edx, ecx
jae 0x482443
sub ecx, edx
nop
add dword [eax], edi
lea eax, [eax + 4]
sub ecx, 1
jne 0x482439
mov eax, dword [0x4ea2f0]
add ebx, eax
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
lea eax, [ebx + 1]
push eax
push ebp
call esi
mov edi, eax
test edi, edi
je 0x482527
movsx ecx, byte [ebx]
add ebx, ecx
lea ecx, [ebx + 1]
push ecx
push ebp
call esi
mov dword [esp + 0x18], eax
test eax, eax
je 0x482527
movsx ecx, byte [ebx]
add ebx, ecx
lea ecx, [ebx + 1]
push ecx
call edi
mov edx, eax
test edx, edx
je 0x482527
mov eax, dword [edx + 0x3c]
movsx ecx, byte [ebx]
mov edi, dword [eax + edx + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [ebx + ecx + 4]
lea esi, [ecx + 0xc]
push eax
push 0x40
add esi, ebx
add edi, edx
mov ebx, dword [ebx + ecx + 8]
push ebx
push edi
mov dword [esp + 0x20], 0
call dword [esp + 0x28]
push ebx
push esi
push edi
call fcn.00482229
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [esp + 0x28]
mov eax, dword [0x4ea2c0]
xor ecx, ecx
add edi, ebp
cmp byte [eax], cl
je 0x482503
mov edx, dword [esp + 0x1c]
nop
mov eax, dword [0x4ea2c0]
movsx ax, byte [eax + ecx]
mov word [edx + ecx*2], ax
inc ecx
mov eax, dword [0x4ea2c0]
cmp byte [eax + ecx], 0
jne 0x4824e9
mov eax, dword [esp + 0x1c]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esp + 0x24], eax
lea eax, [ebx + esi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x2c], 1
call edi
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret