Function at 0x100acbf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x20f8
call fcn.100bfd30
mov eax, dword [0x100df00c]
xor eax, esp
mov dword [esp + 0x20f4], eax
push esi
mov esi, dword [ebp + 0x18]
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x9c], edi
mov dword [esp + 0x64], esi
mov edi, dword [esp + 0x64]
mov esi, dword [ebp + 0x1c]
movzx eax, dx
mov edx, dword [ebp + 8]
mov dword [edi + 0x10], 0
lea edi, [esp + 0xd4]
push edi
lea edi, [esp + 0xcc]
shl edx, 4
add edx, dword [ecx + 0x58]
push edi
lea edi, [esp + 0xe8]
mov dword [esp + 0x1c], 0xffffffff
push edi
lea edi, [esp + 0x6c]
movlpd qword [esp + 0xc8], xmm0
push edi
lea edi, [esp + 0x24]
push edi
push eax
movups xmmword [esp + 0x88], xmm0
call fcn.100ac080
mov edx, dword [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x2c], eax
mov edi, 0
test eax, eax
je 0x100ad290
movzx ecx, word [eax]
and ecx, 0x20
mov dword [esi], ecx
movzx ecx, word [eax]
movzx eax, word [eax + 8]
and ecx, 0x10
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x8c], eax
mov eax, ecx
sub eax, edi
je 0x100ad24a
sub eax, 1
je 0x100ad0fa
mov esi, dword [esp + 0x7c]
xor eax, eax
mov dword [esp + 0x5c], eax
test ecx, ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
jle 0x100aceee
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x20], ecx
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0xe0]
mov eax, dword [esp + 0x2c]
push 0
mov eax, dword [eax + 0x14]
lea eax, [eax + ecx*4]
push eax
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0xf8]
add esp, 0xc
lea eax, [ecx + eax*4]
push 4
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x74], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0x74]
add esp, 0xc
mov ecx, dword [ecx]
test ecx, ecx
je 0x100ad28c
cmp dword [esp + 0x6c], edi
jne 0x100acecd
mov eax, dword [esp + 0x2c]
push 0
mov eax, dword [eax + 0x14]
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
lea eax, [esp + 0xb4]
push 8
push eax
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 8
jne 0x100acdd1
movsx eax, word [esp + 0xb4]
movsx edx, word [esp + 0xb6]
mov dword [esp + 0x30], eax
movsx eax, word [esp + 0xb8]
mov dword [esp + 0xa8], eax
movsx eax, word [esp + 0xba]
mov dword [esp + 0xac], eax
jmp 0x100acdd5
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + ecx*4 + 0xc8]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + ecx*4 + 0xd4]
sub eax, dword [esp + 0xac]
add edx, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0xa4], edx
test ecx, ecx
jne 0x100ace38
movaps xmm0, xmmword [esp + 0xa0]
movaps xmmword [esp + 0x70], xmm0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x40], edx
jmp 0x100acec2
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x100ace9d
test esi, esi
jle 0x100ace9d
mov edx, dword [esp + 0x40]
mov eax, edx
sub eax, dword [esp + 0x30]
test eax, eax
jle 0x100ace5c
mov edx, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x30]
sub eax, edx
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 0xa8]
cmp ecx, eax
cmovl ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov eax, ecx
sub eax, edx
test eax, eax
jle 0x100ace8a
mov ecx, edx
add esi, eax
mov dword [esp + 0x28], ecx
mov eax, edx
sub eax, ecx
add eax, dword [esp + 0xac]
cmp esi, eax
jge 0x100acec6
mov esi, eax
jmp 0x100acec6
movaps xmm0, xmmword [esp + 0xa0]
movaps xmmword [esp + 0x70], xmm0
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
add dword [eax], 8
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x60]
jl 0x100acd10
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
jmp 0x100acef8
mov edi, dword [esp + 0x70]
mov dword [esp + 0x40], edi
xor edi, edi
cmp dword [esp + 0x6c], 0
je 0x100acf1f
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xa]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0xe]
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x100acf5d
mov edi, dword [esp + 0x40]
add eax, esi
mov word [esp + 0x92], ax
mov eax, dword [esp + 0xc0]
mov word [esp + 0x90], di
xor edi, edi
mov word [esp + 0x94], cx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xbc]
mov word [esp + 0x96], si
xor esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], esi
cmp dword [esp + 0x60], esi
jle 0x100ad260
jmp 0x100acf84
mov edx, dword [esp + 0x14]
mov eax, dword [esp + esi*4 + 0xec]
add eax, dword [ecx + 0x14]
push 0
push eax
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
lea eax, [esp + 0x18]
push 2
push eax
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ax, word [esp + 0x24]
mov ecx, 0x2000
add esp, 0xc
cmp ax, cx
ja 0x100ad28c
movzx eax, ax
push eax
lea eax, [esp + 0xfc]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [esp + 0xa8]
lea eax, [esp + 0x104]
add esp, 0xc
mov dword [esp + 0x98], eax
test ecx, ecx
je 0x100ad00f
movzx eax, word [esp + 0x18]
push eax
lea eax, [esp + 0xfc]
push eax
call ecx
add esp, 8
test eax, eax
je 0x100ad28c
cmp dword [esp + 0x6c], 0
jne 0x100ad02e
mov eax, dword [esp + esi*4 + 0xc8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + esi*4 + 0xd4]
mov dword [esp + 0x1c], eax
jmp 0x100ad032
mov eax, dword [esp + 0x1c]
push eax
push dword [esp + 0x2c]
lea edx, [esp + 0x94]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x74]
push dword [ebp + 0xc]
call fcn.10029800
mov eax, dword [esp + 0x78]
add esp, 0x14
cmp dword [eax + 0x10], 0
je 0x100ad28c
test esi, esi
jne 0x100ad099
mov edi, dword [eax + 8]
add edi, 0xf
sar edi, 3
and edi, 0xfffffffe
imul edi, dword [eax + 0xc]
mov ecx, edi
call fcn.1001ec10
test eax, eax
je 0x100ad28c
push edi
push dword [0x100e9938]
push dword [0x100eda3c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100ad0e2
mov eax, dword [esp + 0x60]
mov edx, edi
dec eax
cmp esi, eax
je 0x100ad0c2
mov esi, dword [0x100e9938]
mov ecx, dword [0x100eda3c]
sub esi, ecx
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
or byte [ecx - 1], al
sub edx, 1
jne 0x100ad0b2
jmp 0x100ad0de
mov esi, dword [0x100eda3c]
mov eax, dword [0x100e9938]
sub esi, eax
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
or byte [eax - 1], cl
sub edx, 1
jne 0x100ad0d0
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
inc esi
mov dword [esp + 0x20], esi
cmp esi, dword [esp + 0x60]
jl 0x100acf80
jmp 0x100ad260
mov eax, dword [esp + 0x2c]
push 0
mov ecx, dword [eax + 0x14]
mov eax, dword [esp + 0xe4]
lea eax, [ecx + eax*4]
push eax
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0xd0]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
push 4
push eax
push edi
call esi
mov ecx, dword [esp + 0xd0]
add esp, 0xc
test ecx, ecx
je 0x100ad28c
mov eax, dword [esp + 0x2c]
push 0
mov eax, dword [eax + 0x14]
add eax, ecx
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
cmp dword [esp + 0x6c], 0
je 0x100ad18e
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0xa]
mov dword [esp + 0x90], eax
mov eax, dword [ecx + 0xe]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x1c], eax
jmp 0x100ad1c4
push 8
lea eax, [esp + 0x94]
push eax
push edi
call esi
mov eax, dword [esp + 0xd4]
add esp, 0xc
add word [esp + 0x90], ax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xd4]
add word [esp + 0x92], ax
mov dword [esp + 0x68], eax
push 2
lea eax, [esp + 0x1c]
push eax
push edi
call esi
mov ax, word [esp + 0x24]
mov ecx, 0x2000
add esp, 0xc
cmp ax, cx
ja 0x100ad28c
movzx eax, ax
push eax
lea eax, [esp + 0xfc]
push eax
push edi
call esi
mov ecx, dword [esp + 0xa8]
add esp, 0xc
test ecx, ecx
je 0x100ad218
movzx eax, word [esp + 0x18]
push eax
lea eax, [esp + 0xfc]
push eax
call ecx
add esp, 8
test eax, eax
je 0x100ad28c
push dword [esp + 0x68]
lea eax, [esp + 0xfc]
push dword [esp + 0x20]
lea edx, [esp + 0x94]
mov dword [esp + 0xa0], eax
push ecx
push dword [ebp + 0x10]
mov ecx, dword [esp + 0x74]
push dword [ebp + 0xc]
call fcn.10029800
add esp, 0x14
jmp 0x100ad264
mov ecx, dword [esp + 0x64]
movups xmm0, xmmword [0x100c749c]
mov eax, dword [0x100c74ac]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov edi, dword [esp + 0x14]
cmp edi, 0xffffffff
je 0x100ad273
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x20f4]
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
cmp edx, 0xffffffff
je 0x100ad29f
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov ecx, dword [esp + 0x20fc]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100be194
mov esp, ebp
pop ebp
ret