Function at 0x401480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4043d5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov eax, edx
mov esi, dword [edx + 0x14]
cmp esi, 7
jbe 0x4014d8
mov eax, dword [edx]
mov edi, dword [edx + 0x10]
mov ecx, 0x405224
mov dword [ebp - 0x30], 0x405208
cmp word [eax + edi*2 - 2], 0xa
cmove ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 2]
mov dword [ebp - 0x30], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401500
sub ecx, dword [ebp - 0x30]
mov eax, 0x7ffffffe
sar ecx, 1
sub eax, edi
cmp eax, ecx
jb 0x4016a8
cmp esi, 7
jbe 0x401526
mov edx, dword [edx]
push ecx
push dword [ebp - 0x14]
push edi
push edx
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
call fcn.00402fc0
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401330
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4015b8
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x401584
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40157a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401626
push ecx
push edx
call fcn.004038b9
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x4015e8
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4015de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401626
push ecx
push edx
call fcn.004038b9
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 7
jbe 0x401636
mov edx, dword [ebp - 0x60]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40162c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40162c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004038b9
add esp, 8
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
push dword [0x4074ac]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x40168d
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401683
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401683
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004038b9
add esp, 8
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.0040362a
mov esp, ebp
pop ebp
ret
call fcn.00401220
int3