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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x88
mov eax, dword [str.kernel32.dll]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [0x10159314]
sub esp, 4
mov dword [ebp - 0x40], eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov ecx, dword [0x10159314]
sub esp, 0xc
mov edi, eax
lea edx, [eax + ecx]
test ecx, ecx
je 0x100ff5b8
lea esi, [esi]
mov byte [eax], 0
add eax, 1
cmp eax, edx
jne 0x100ff5ae
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, dword [str.undershirt.tif]
sub esp, 0xc
cmp word [edi], 0
je 0x100ffa3e
xor edx, edx
jmp 0x100ff5f0
mov edx, eax
lea eax, [edx + 1]
cmp word [edi + eax*2], 0
jne 0x100ff5ee
add edx, edx
cmp word [edi + edx], 0x5c
je 0x100ff614
xor edx, edx
mov word [edi + eax*2], dx
sub eax, 1
cmp word [edi + eax*2 - 2], 0x5c
jne 0x100ff603
movsx dx, byte [ecx]
lea eax, [edi + eax*2]
add ecx, 1
test dl, dl
je 0x100ff633
mov word [eax], dx
movsx dx, byte [ecx]
add eax, 2
add ecx, 1
test dl, dl
jne 0x100ff622
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
je 0x100ffa29
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x101592fc]
sub esp, 8
mov dword [ebp - 0x44], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x3c], ecx
mov dword [esp], 0
call esi
mov ecx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call ebx
mov ebx, dword [0x101592fc]
sub esp, 0xc
mov dword [ebp - 0x3c], eax
lea ecx, [eax + ebx]
test ebx, ebx
je 0x100ff6e8
nop
mov byte [eax], 0
add eax, 1
cmp eax, ecx
jne 0x100ff6de
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x10], 0
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x100ffa29
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [0x10159318]
add ecx, eax
mov dword [ebp - 0x4c], eax
mov esi, dword [ecx]
lea ebx, [ecx + 8]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x44], eax
test esi, esi
je 0x100ff79c
lea eax, [esi - 1]
cmp eax, 2
jbe 0x100ffa4e
mov edi, esi
movd xmm3, dword [ebp - 0x44]
mov eax, ebx
xor edx, edx
shr edi, 2
pshufd xmm1, xmm3, 0
movdqu xmm0, xmmword [eax]
add edx, 1
add eax, 0x10
paddd xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
cmp edi, edx
jne 0x100ff761
mov eax, esi
and eax, 0xfffffffc
lea ebx, [ebx + eax*4]
cmp esi, eax
je 0x100ff79c
lea edx, [eax + 1]
mov edi, dword [ebp - 0x44]
add dword [ebx], edi
cmp esi, edx
jbe 0x100ff79c
add dword [ebx + 4], edi
add eax, 2
cmp esi, eax
jbe 0x100ff79c
add dword [ebx + 8], edi
mov ebx, dword [0x10159324]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea esi, [ecx + ebx]
lea eax, [esi + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call edi
sub esp, 8
test eax, eax
je 0x100ffa29
mov dword [ebp - 0x50], eax
movsx eax, byte [esi]
add esi, eax
mov dword [ebp - 0x5c], eax
lea eax, [esi + 1]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call edi
sub esp, 8
mov edi, eax
mov dword [ebp - 0x54], eax
test eax, eax
je 0x100ffa29
movsx ecx, byte [esi]
mov edx, dword [ebp - 0x50]
add esi, ecx
mov dword [ebp - 0x44], ecx
lea eax, [esi + 1]
mov dword [esp], eax
call edx
sub esp, 4
mov edx, eax
test eax, eax
je 0x100ffa29
movsx ecx, byte [esi]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x28], 0
lea eax, [esi + ecx]
mov dword [ebp - 0x50], ecx
mov esi, dword [eax + 4]
lea ecx, [eax + 0xc]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x60], esi
mov esi, dword [eax + 8]
mov eax, dword [edx + 0x3c]
add ecx, esi
mov dword [ebp - 0x64], ecx
mov ecx, dword [edx + eax + 0x2c]
mov eax, edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], esi
mov dword [ebp - 0x6c], ecx
add ecx, edx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x40], ecx
mov dword [esp + 0xc], edx
mov dword [esp], ecx
call eax
lea eax, [esi - 1]
mov edx, dword [ebp - 0x68]
sub esp, 0x10
test esi, esi
mov dword [ebp - 0x58], eax
je 0x100ff9b1
add ebx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x3c]
lea eax, [ecx + ebx + 0xc]
add eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x50]
lea ecx, [ecx + ebx + 0x1c]
add ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x50]
add eax, edi
mov ebx, dword [ebp - 0x40]
add ecx, edi
mov edi, dword [ebp - 0x6c]
cmp ebx, ecx
setae cl
lea edx, [edx + edi + 0x10]
cmp eax, edx
setae dl
or cl, dl
je 0x100ffa55
cmp dword [ebp - 0x58], 0xe
jbe 0x100ffa55
mov edi, dword [ebp - 0x70]
mov ecx, esi
mov edx, ebx
and ecx, 0xfffffff0
add ecx, eax
lea esi, [esi]
nop
movdqu xmm2, xmmword [eax]
add eax, 0x10
add edx, 0x10
movups xmmword [edx - 0x10], xmm2
cmp eax, ecx
jne 0x100ff8ce
mov ecx, dword [ebp - 0x58]
mov edx, esi
mov eax, dword [ebp - 0x40]
and edx, 0xfffffff0
add edi, edx
sub ecx, edx
add eax, edx
cmp edx, esi
je 0x100ff9b1
movzx edx, byte [edi]
mov byte [eax], dl
test ecx, ecx
je 0x100ff9b1
movzx edx, byte [edi + 1]
mov byte [eax + 1], dl
cmp ecx, 1
je 0x100ff9b1
movzx edx, byte [edi + 2]
mov byte [eax + 2], dl
cmp ecx, 2
je 0x100ff9b1
movzx edx, byte [edi + 3]
mov byte [eax + 3], dl
cmp ecx, 3
je 0x100ff9b1
movzx edx, byte [edi + 4]
mov byte [eax + 4], dl
cmp ecx, 4
je 0x100ff9b1
movzx edx, byte [edi + 5]
mov byte [eax + 5], dl
cmp ecx, 5
je 0x100ff9b1
movzx edx, byte [edi + 6]
mov byte [eax + 6], dl
cmp ecx, 6
je 0x100ff9b1
movzx edx, byte [edi + 7]
mov byte [eax + 7], dl
cmp ecx, 7
je 0x100ff9b1
movzx edx, byte [edi + 8]
mov byte [eax + 8], dl
cmp ecx, 8
je 0x100ff9b1
movzx edx, byte [edi + 9]
mov byte [eax + 9], dl
cmp ecx, 9
je 0x100ff9b1
movzx edx, byte [edi + 0xa]
mov byte [eax + 0xa], dl
cmp ecx, 0xa
je 0x100ff9b1
movzx edx, byte [edi + 0xb]
mov byte [eax + 0xb], dl
cmp ecx, 0xb
je 0x100ff9b1
movzx edx, byte [edi + 0xc]
mov byte [eax + 0xc], dl
cmp ecx, 0xc
je 0x100ff9b1
movzx edx, byte [edi + 0xd]
mov byte [eax + 0xd], dl
cmp ecx, 0xd
je 0x100ff9b1
movzx edx, byte [edi + 0xe]
mov byte [eax + 0xe], dl
lea eax, [ebp - 0x28]
mov dword [esp + 4], esi
mov esi, dword [ebp - 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x3c]
add ebx, dword [ebp - 0x48]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x54]
call eax
mov ecx, dword [ebp - 0x60]
xor eax, eax
mov edx, dword [str.gyre.css]
sub esp, 0x10
add ecx, esi
cmp byte [edx], 0
je 0x100ffa4a
lea esi, [esi]
nop
mov edx, dword [str.gyre.css]
movsx dx, byte [edx + eax]
mov word [ebx + eax*2], dx
mov edx, dword [str.gyre.css]
add eax, 1
cmp byte [edx + eax], 0
jne 0x100ff9ee
lea eax, [ebx + eax*2]
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], 1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
mov dword [esp], eax
call ecx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edx, 0xfffffffe
xor eax, eax
jmp 0x100ff5fc
mov eax, ebx
jmp 0x100ffa0f
xor eax, eax
jmp 0x100ff783
mov eax, dword [ebp - 0x40]
mov edi, dword [ebp - 0x70]
lea edx, [eax + esi]
movzx ecx, byte [edi]
add eax, 1
add edi, 1
mov byte [eax - 1], cl
cmp eax, edx
jne 0x100ffa5e
jmp 0x100ff9b1