Function at 0x101c1a60
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102064ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x10275008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x128], eax
mov eax, dword [ebx + 0x10]
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x12c], eax
jne 0x101c1ac3
xor al, al
jmp 0x101c1d65
xorps xmm0, xmm0
mov dword [ebp - 0x120], 0
push 4
movlpd qword [ebp - 0x138], xmm0
call fcn.101c838c
add esp, 4
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x120]
push 0x80
push 3
push 1
push SysReAllocString
push esi
call fcn.100dd330
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x101c1d20
cmp dword [esi], 0xffffffff
je 0x101c1d20
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x120]
call fcn.100dd530
test al, al
jne 0x101c1b89
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x101c1d20
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x101c1d20
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x101c1d20
mov dword [esi], 0xffffffff
jmp 0x101c1d20
mov eax, dword [ebp - 0x138]
or eax, dword [ebp - 0x134]
jne 0x101c1bad
lea ecx, [ebp - 0x120]
call fcn.100dd4d0
mov esi, dword [ebp - 0x120]
jmp 0x101c1d20
push 0x100
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp - 0x120]
add esp, 0xc
mov dword [ebp - 0x18], 0
test esi, esi
je 0x101c1d15
cmp dword [esi], 0xffffffff
je 0x101c1d15
push 0
lea eax, [ebp - 0x18]
push eax
push 0x100
lea eax, [ebp - 0x118]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101c1d15
lea ecx, [ebp - 0x120]
call fcn.100dd4d0
cmp dword [ebp - 0x18], 0x100
jne 0x101c1d20
xor ecx, ecx
xorps xmm2, xmm2
xorps xmm3, xmm3
nop dword [eax]
nop word [eax + eax]
movd xmm1, dword [ebp + ecx - 0x118]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm2, xmm1
movd xmm1, dword [ebp + ecx - 0x114]
punpcklbw xmm1, xmm0
add ecx, 8
punpcklwd xmm1, xmm0
paddd xmm3, xmm1
cmp ecx, 0xf8
jb 0x101c1c30
paddd xmm2, xmm3
xor edx, edx
movaps xmm0, xmm2
xor edi, edi
psrldq xmm0, 8
paddd xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
cmp ecx, 0xfc
jae 0x101c1ce7
mov eax, 0xfc
sub eax, ecx
cmp eax, 2
jb 0x101c1cbf
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x118]
add edx, eax
movzx eax, byte [ebp + ecx - 0x117]
add ecx, 2
add edi, eax
cmp ecx, 0xfb
jb 0x101c1ca0
cmp ecx, 0xfc
jae 0x101c1cdc
movzx eax, byte [ebp + ecx - 0x118]
movd ecx, xmm2
add ecx, eax
lea eax, [edx + edi]
add ecx, eax
jmp 0x101c1ceb
movd ecx, xmm2
lea eax, [edx + edi]
add ecx, eax
jmp 0x101c1ceb
movd ecx, xmm2
cmp ecx, dword [ebp - 0x1c]
jne 0x101c1d20
mov ecx, dword [ebp - 0x128]
mov eax, dword [ebp - 0x104]
mov byte [ebp - 0x119], 1
mov dword [ecx], eax
mov ecx, dword [ebp - 0x12c]
mov eax, dword [ebp - 0x100]
mov dword [ecx], eax
jmp 0x101c1d27
lea ecx, [ebp - 0x120]
call fcn.100dd4d0
mov byte [ebp - 0x119], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x101c1d5f
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x101c1d4a
test eax, eax
je 0x101c1d4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.101c8702
add esp, 8
mov dword [ebp - 0x120], 0
mov al, byte [ebp - 0x119]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101c837b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc