Function at 0x66d6a80
Capabilities:
Write 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 0x672d360
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x6740080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov eax, 0x7fffffff
mov ecx, dword [ebx + 0x18]
sub eax, ecx
mov dword [ebp - 0x20], ecx
cmp eax, 1
jb 0x66d6c91
cmp dword [ebx + 0x1c], 0xf
lea eax, [ebx + 8]
lea edx, [ecx + 1]
mov esi, 0xf
cmova eax, dword [ebx + 8]
lea edi, [ebp - 0x40]
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x24], edx
movups xmmword [ebp - 0x40], xmm0
cmp edx, esi
jbe 0x66d6b81
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x66d6b41
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.067085d3
add esp, 4
test eax, eax
je 0x66d6c9b
mov ecx, dword [ebp - 0x20]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x24]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x66d6b7b
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x66d6b62
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x66d6c96
jmp 0x66d6b1f
test eax, eax
je 0x66d6b79
push eax
call fcn.067085d3
mov ecx, dword [ebp - 0x20]
add esp, 4
mov edx, dword [ebp - 0x24]
mov edi, eax
jmp 0x66d6b7b
xor edi, edi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], edi
push ecx
push eax
push edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], esi
call fcn.06709c30
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov word [edi + eax], 0xa
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0xf
jbe 0x66d6bcf
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x66d6bc5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66d6c9b
push ecx
push edx
call fcn.067085a2
add esp, 8
movups xmm1, xmmword [ebp - 0x40]
lea esi, [ebx + 8]
movq xmm0, qword [ebp - 0x30]
movq qword [ebx + 0x18], xmm0
mov edi, dword [ebx + 0x1c]
cmp edi, 0xf
movd edx, xmm1
movups xmmword [ebx + 8], xmm1
cmova esi, edx
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66d6c00
sub ecx, dword [ebp - 0x1c]
je 0x66d6c47
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66d6c17
push 0
lea eax, [ebp - 0x18]
sub ecx, edx
push eax
push ecx
push esi
push dword [ebp - 0x28]
call edi
test eax, eax
jne 0x66d6c41
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x66d6c36
sub eax, edx
jne 0x66d6c12
mov edi, dword [ebx + 0x1c]
mov edx, dword [ebx + 8]
cmp edi, 0xf
jbe 0x66d6c73
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x66d6c69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x66d6c9b
push ecx
push edx
call fcn.067085a2
add esp, 8
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.06708594
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.066d1330
call fcn.066d1260
call fcn.0670d38a
int3