Function at 0x10013ac0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032838
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x10072170]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x10072630]
inc dword [0x10072634]
push 0xc
call dword [0x10072048]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0xd]
add esp, 8
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10013b1e
mov ecx, eax
call fcn.1000a280
jmp 0x10013b20
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 8]
push 0
push 0
push str.Window
mov dword [edi + 0x298c], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], str.Window
call fcn.10013050
lea esi, [edi + 0x2978]
mov dword [ebp - 0x30], eax
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x2c], 0x1001d610
mov dword [ebp - 0x28], 0x1001d550
mov dword [ebp - 0x24], 0x1001d680
test eax, eax
jne 0x10013b9e
cmp dword [esi + 4], eax
jne 0x10013b83
push 8
mov ecx, esi
call fcn.1001ecb0
mov eax, dword [esi]
movups xmm0, xmmword [ebp - 0x34]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + ecx*8 + 0x10], xmm0
jmp 0x10013c00
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x10013bd1
lea edx, [eax + 1]
mov dword [ebp + 8], edx
test ecx, ecx
je 0x10013bbd
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp + 8]
sar eax, 1
add eax, ecx
jmp 0x10013bc2
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.1001ecb0
mov eax, dword [esi]
test eax, eax
jle 0x10013bec
mov ecx, dword [esi + 8]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push ecx
lea eax, [ecx + 0x18]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [esi + 8]
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [eax + 0x10], xmm0
inc dword [esi]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10013d10
push 0x10068e94
push eax
call fcn.10012f20
mov esi, eax
add esp, 8
test esi, esi
je 0x10013d10
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10013d06
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x10013d06
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10013d06
push dword [0x10072630]
mov eax, dword [ebp + 8]
inc dword [0x10072634]
inc eax
push eax
call dword [0x10072048]
add esp, 8
mov dword [ebp - 0x14], eax
push esi
test eax, eax
je 0x10013d07
push dword [ebp + 8]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp + 8]
add esp, 0x10
push esi
cmp eax, ecx
je 0x10013cc6
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x14]
push eax
call fcn.100170a0
add esp, 8
mov byte [edi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [ebp - 0x14]
push esi
call fcn.10016d30
push dword [0x10072630]
dec dword [0x10072634]
push esi
call dword [0x1007204c]
add esp, 0x10
mov byte [edi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [edi], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret