Function at 0x10017b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087fae
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x100c4014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa8], ecx
mov ecx, 0x100c75db
call fcn.10085165
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x10017e84
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x10017e84
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x34
mov ecx, eax
call fcn.1000fff0
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x10017bf8
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
sub edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push eax
lea eax, [edi + 0x14]
push eax
call fcn.1000fff0
mov ecx, dword [ebp - 0x20]
movups xmm0, xmmword [esi]
movups xmmword [ecx + edi], xmm0
mov eax, dword [esi + 0x10]
add esi, 0x14
mov dword [ecx + edi + 0x10], eax
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi + 4]
jne 0x10017bc6
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov dword [ebp - 0x24], 0
add eax, 0xffffffcc
push eax
lea eax, [ecx + 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.1001f930
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
call esi
add esp, 4
test eax, eax
je 0x10017c55
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [eax + 0x10]
psrldq xmm0, 4
movd eax, xmm0
add eax, 0x76c
jmp 0x10017c57
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call esi
add esp, 4
test eax, eax
je 0x10017c79
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x78], xmm0
movups xmm0, xmmword [eax + 0x10]
movd eax, xmm0
inc eax
jmp 0x10017c7b
xor eax, eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0x30]
push eax
call esi
add esp, 4
test eax, eax
je 0x10017ca7
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x10]
psrldq xmm1, 0xc
movups xmmword [ebp - 0x8c], xmm0
movd esi, xmm1
jmp 0x10017ca9
xor esi, esi
mov eax, dword [ebp - 0xa4]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x14]
shl eax, 8
or esi, eax
shl ecx, 0x10
or esi, ecx
movlpd qword [ebp - 0xb0], xmm0
mov ecx, dword [edi + 4]
mov eax, 0x66666667
sub ecx, dword [edi]
imul ecx
mov ecx, dword [ebp - 0x20]
sar edx, 3
mov eax, edx
mov dword [ebp - 0xd0], esi
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xdc], 0x2a864
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xd8], 1
movups xmm0, xmmword [edx + 0x10]
mov eax, dword [edx + 8]
lea esi, [edx + 0x20]
mov dword [ebp - 0xcc], eax
mov eax, dword [edx + 0xc]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xc8], eax
movups xmm0, xmmword [ebp - 0xdc]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xac]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ebp - 0xcc]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ebp - 0xbc]
movups xmmword [ecx + 0x20], xmm0
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.1004bd20
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
push 4
call fcn.100826df
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
push 1
push ecx
push 0x40000000
push esi
lea ecx, [ebp - 0x14]
call fcn.10042510
mov esi, dword [ebp - 0x14]
test al, al
je 0x10017e34
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
sub edi, eax
mov dword [ebp - 0x28], 0
test esi, esi
je 0x10017e26
test eax, eax
je 0x10017e0e
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x10017e26
push 0
lea edx, [ebp - 0x28]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10017e0e
mov ecx, dword [ebp - 0x28]
cmp edi, ecx
jne 0x10017e0e
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
cmp ecx, eax
jne 0x10017e0e
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10017e05
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10017e05
mov dword [esi], 0xffffffff
mov byte [ebp - 0x9d], 1
jmp 0x10017e3b
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10017e26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10017e26
mov dword [esi], 0xffffffff
mov ecx, dword [ebp - 0xa8]
lea ecx, [ecx + 0x20]
call fcn.1004bd20
mov byte [ebp - 0x9d], 0
mov byte [ebp - 4], 5
test esi, esi
je 0x10017e6d
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10017e5b
test eax, eax
je 0x10017e5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.1008270f
add esp, 8
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1000fc20
mov al, byte [ebp - 0x9d]
jmp 0x10017e86
xor al, al
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.100826ce
mov esp, ebp
pop ebp
ret 0xc