Function at 0x10011a90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100400c7
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1005c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov ecx, 0x1006012a
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], eax
call fcn.1003df25
push ecx
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.100122a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push 0x10048f68
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10011d55
mov eax, dword [ebp - 0x58]
push esi
push 1
push 0x1c
movups xmm0, xmmword [eax]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x38], ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x4c], 0
movq xmm0, qword [eax + 0x10]
lea eax, [ebp - 0x50]
push eax
movq qword [ebp - 0x40], xmm0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
push esi
cmp eax, 1
jne 0x10011d44
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov eax, dword [ebp + 0x10]
add esp, 4
test eax, eax
jne 0x10011b82
test edi, edi
je 0x10011d43
mov ecx, edi
call fcn.1000b6a0
push esi
push dword [ebp - 0x1c]
lea ecx, [edi + 0x30]
call fcn.100130a0
test al, al
je 0x10011d43
mov dword [ebp - 0x50], 0x61766377
jmp 0x10011bb5
cmp eax, 1
jne 0x10011d43
test edi, edi
je 0x10011d43
mov ecx, edi
call fcn.1000b6a0
push esi
push dword [ebp - 0x1c]
lea ecx, [edi + 0x30]
call fcn.10013290
test al, al
je 0x10011d43
mov dword [ebp - 0x50], 0x61766362
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push esi
call edi
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0x10048f70
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10011d4d
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add eax, 0xffffffe4
add esp, 0x10
mov dword [ebp - 0x48], eax
cmp eax, 0x3200000
ja 0x10011c1a
test eax, eax
je 0x10011c1a
push 0
push 0x1c
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
je 0x10011c22
push esi
call edi
jmp 0x10011d4a
push 0x1005c700
push dword [ebp - 0x48]
call fcn.1003c7c7
add esp, 8
mov dword [ebp - 0x58], eax
test eax, eax
je 0x10011c1a
push dword [ebp - 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
push 1
push dword [ebp - 0x48]
push dword [ebp - 0x58]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
cmp eax, 1
je 0x10011c6e
push dword [ebp - 0x58]
call fcn.1003c7c2
push esi
call edi
add esp, 8
jmp 0x10011d4d
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movlpd qword [ebp - 0x18], xmm0
call fcn.10027a20
mov byte [ebp - 4], 0x31
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x18]
call dword [eax]
push dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
push dword [ebp - 0x58]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
call dword [eax + 8]
push dword [ebp - 0x58]
call fcn.1003c7c2
add esp, 4
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push 4
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x10011cf8
mov eax, dword [ebp - 0x1c]
push 0
push 0
push esi
mov dword [ebp - 0x44], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push esi
test eax, eax
jne 0x10011cf9
push 1
lea eax, [ebp - 0x50]
push 0x1c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x10011d18
push esi
call edi
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.10032d40
mov byte [ebp - 0x51], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10027c50
jmp 0x10011d59
push esi
call edi
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x34]
add esp, 4
call fcn.10032a50
lea ecx, [ebp - 0x34]
call fcn.10032d40
mov byte [ebp - 0x51], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.10027c50
jmp 0x10011d59
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.10032d40
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0x3e
lea ecx, [ebp - 0x34]
call fcn.1000ab60
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x51]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003c726
mov esp, ebp
pop ebp
ret 0x10