Function at 0x41bbf0
Capabilities:
Clear file content
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 0x568800
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x5bfd00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
mov edx, esi
lea ecx, [ebp - 0x54]
call fcn.0041b670
mov dword [ebp - 4], 0
cmp dword [eax + 0x10], 0
je 0x41bd0f
mov edx, eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x18], 0x5bfd74
call fcn.0044a1a0
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x38], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x28], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0041afa0
mov byte [ebp - 4], 1
add esp, 8
mov ecx, dword [ebp - 0x24]
cmp ecx, 7
jbe 0x41bcf3
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41bce9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41bce9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
xor eax, eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.0041c760
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x41bd4c
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41bd42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41bd42
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov edx, esi
mov byte [ebp - 0x1d], 0
lea ecx, [ebp - 0x54]
call fcn.0044a1a0
cmp dword [eax + 0x14], 7
jbe 0x41bd62
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x40]
mov esi, eax
cmp ecx, 7
jbe 0x41bdb9
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41bdaf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41bdaf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov edi, dword [ebx + 0xc]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
cmp esi, 0xffffffff
je 0x41be06
push eax
push eax
push edi
push dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x41bdff
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41bdff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x41bf63
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push 0x59ef70
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x38], xmm0
call fcn.0040d5d0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], 3
cmp dword [eax + 0x10], 0
je 0x41be93
cmp dword [ebp - 0x28], 0
je 0x41be93
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x84]
call fcn.0044a1a0
mov esi, eax
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 7
jbe 0x41be5c
mov esi, dword [esi]
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0x6c]
call fcn.0044a1a0
cmp dword [eax + 0x14], 7
jbe 0x41be6f
mov eax, dword [eax]
push 0x40
push esi
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfsopen]
add esp, 0xc
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.0041c760
lea ecx, [ebp - 0x84]
call fcn.0041c760
jmp 0x41be95
xor esi, esi
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x41becb
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41bec1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41bec1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
test esi, esi
je 0x41bf60
mov ecx, dword [ebx + 8]
mov eax, ecx
or eax, edi
jne 0x41bef6
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
jmp 0x41bf52
sub ecx, 1
mov eax, edi
push 0
sbb eax, 0
push eax
push ecx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
jne 0x41bf56
push esi
push 1
push 1
push 0x59de09
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x41bf56
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
add esp, 4
push 2
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
add esp, 0x14
cmp eax, dword [ebx + 8]
jne 0x41bf56
cmp edx, edi
jne 0x41bf56
mov byte [ebp - 0x1d], 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, byte [ebp - 0x1d]
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.00563360
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret