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

Disassembly:
mov eax, dword [str.kernel32.dll]
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x1008852c]
mov ebp, eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push ecx
push 0
call ebx
mov ecx, dword [0x1008852c]
mov esi, eax
push ecx
push esi
call fcn.10030175
add esp, 8
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [str.shape.avi]
xor eax, eax
cmp word [esi], ax
je 0x1003021d
nop word [eax + eax]
inc eax
cmp word [esi + eax*2], 0
jne 0x10030215
cmp word [esi + eax*2 - 2], 0x5c
lea ecx, [esi + eax*2]
je 0x10030239
dec eax
xor edi, edi
mov word [ecx], di
cmp word [esi + eax*2 - 2], 0x5c
lea ecx, [esi + eax*2]
inc esi
jne 0x10030228
mov cl, byte [edx]
test cl, cl
je 0x10030259
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 0x10030245
push 0
push 0x80
add byte [edx + 3], ch
push 0
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10030423
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x10088528]
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]
rol dword [0xfc08510], 1
test byte [edx + 1], ch
add byte [eax], al
mov eax, dword [esp + 0x14]
xor edx, edx
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x10088540]
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 0x1003033f
cmp ecx, 0x10
jb 0x1003032d
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 0x100302f5
cmp edx, ecx
jae 0x1003033f
sub ecx, edx
nop
add dword [eax], edi
lea eax, [eax + 4]
sub ecx, 1
jne 0x10030335
mov eax, dword [0x10088534]
add ebx, eax
fmul dword [ebx + 0x5d2a035]
adc byte [ebp + 0x55500143], cl
call esi
mov edi, eax
test edi, edi
je 0x10030423
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 0x10030423
movsx ecx, byte [ebx]
add ebx, ecx
lea ecx, [ebx + 1]
push ecx
call edi
mov edx, eax
test edx, edx
je 0x10030423
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
add byte [eax], al
call dword [esp + 0x28]
push ebx
push esi
push edi
call fcn.10030125
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [esp + 0x28]
mov eax, dword [str.cadmium.msg]
xor ecx, ecx
add edi, ebp
cmp byte [eax], cl
je 0x100303ff
mov edx, dword [esp + 0x1c]
nop
mov eax, dword [str.cadmium.msg]
movsx ax, byte [eax + ecx]
mov word [edx + ecx*2], ax
inc ecx
mov eax, dword [str.cadmium.msg]
cmp byte [eax + ecx], 0
jne 0x100303e5
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