Function at 0x4115a0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x472940
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4a4284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x54], esi
mov byte [ebp - 0x25], 0
mov dword [ebp - 0x60], vtable.WindowsIO.0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4115ee
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 8
test eax, eax
jne 0x411627
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x411608
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x411627
mov dword [0x4a8ed8], 0xd
jmp 0x411a04
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x411631
mov eax, dword [esi]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
jne 0x411661
mov dword [0x4a8ed8], 3
jmp 0x411a04
test eax, eax
je 0x411a04
mov ecx, dword [edi + 4]
mov eax, 0x66666667
sub ecx, dword [edi]
imul ecx
mov dword [ebp - 0x4c], 0
sar edx, 1
mov eax, edx
mov dword [ebp - 0x44], 0
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x40], 0
lea eax, [eax + eax*2]
lea eax, [eax*8 + 4]
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00415380
test al, al
je 0x4119bb
mov eax, dword [ebp - 0x4c]
mov dword [eax], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.00411dc0
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x14]
mov esi, dword [eax]
cmp esi, eax
je 0x411751
mov al, byte [esi + 0x20]
lea ecx, [ebp - 0x38]
movups xmm0, xmmword [esi + 0x10]
mov byte [ebp - 0x24], al
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.00412760
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00412790
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x411734
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x411730
cmp esi, dword [eax + 8]
jne 0x411730
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x411720
mov esi, eax
jmp 0x41174c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41174c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x411740
cmp esi, dword [edi + 0x14]
jne 0x4116e2
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x6c]
xorps xmm0, xmm0
xor eax, eax
add esi, 4
mov dword [ebp - 0x30], eax
push edi
mov dword [ebp - 0x2c], esi
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x20], xmm0
call fcn.00411c10
cmp byte [ebp + 0xc], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x68]
mov edi, dword [ebp - 0x6c]
je 0x411793
push dword [ebp - 0x54]
push eax
push edi
call fcn.00411e00
mov eax, dword [ebp - 0x68]
add esp, 0xc
cmp edi, eax
je 0x411877
nop dword [eax + eax]
mov edx, dword [ebp - 0x38]
mov esi, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x4117cd
mov cl, byte [edi]
cmp byte [eax + 0x10], cl
jae 0x4117ba
mov eax, dword [eax + 8]
jmp 0x4117be
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4117b0
cmp esi, edx
je 0x4117cd
cmp cl, byte [esi + 0x10]
jae 0x4117f3
push ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.004130c0
push eax
add eax, 0x10
lea ecx, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.004130f0
mov esi, dword [ebp - 0x58]
lea eax, [esi + 0x14]
mov esi, 0xc
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x20]
mov edx, eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x41181a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x411803
movups xmm0, xmmword [ebp - 0x7c]
jmp 0x41184a
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41183c
mov ecx, dword [ebp - 0x2c]
movups xmm0, xmmword [ebp - 0x7c]
mov dword [ecx + 0x10], eax
movups xmmword [ecx], xmm0
lea ecx, [ecx + eax*4]
add ecx, 0x14
xor eax, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x3c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x7c], xmm0
movups xmmword [ebp - 0x20], xmm0
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov eax, dword [edi + 1]
add edi, 5
mov dword [esi + ecx*4 + 0x14], eax
inc ecx
mov dword [ebp - 0x30], ecx
cmp edi, dword [ebp - 0x68]
jne 0x4117a0
test ecx, ecx
je 0x411877
movups xmmword [esi], xmm0
mov dword [esi + 0x10], ecx
lea esi, [esi + ecx*4]
add esi, 0x14
mov ecx, dword [ebp - 0x4c]
sub esi, ecx
mov eax, dword [ebp - 0x44]
cmp esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x50]
cmovbe eax, esi
mov dword [ebp - 0x2c], 0
push 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x411940
cmp ecx, esi
jne 0x411940
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4118ce
mov dword [0x4a8ed8], 0xa
jmp 0x41194a
push 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
jne 0x411909
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411909
mov dword [0x4a8ed8], 7
jmp 0x41194a
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
or ecx, esi
cdq
and ecx, eax
cmp ecx, 0xffffffff
je 0x41194a
lea eax, [ebp - 0x30]
push eax
push 4
push str.DATA
push edi
lea ecx, [ebp - 0x60]
call fcn.00402350
test al, al
je 0x41193c
cmp dword [ebp - 0x30], 4
jne 0x41193c
mov byte [ebp - 0x25], 1
jmp 0x41194a
mov byte [ebp - 0x25], 0
mov dword [0x4a8ed8], 6
lea ecx, [ebp - 0x6c]
call fcn.00411d50
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov dword [ebp - 0x58], ecx
mov edi, dword [eax + 4]
mov esi, edi
cmp byte [edi + 0xd], 0
jne 0x411996
nop dword [eax]
push dword [esi + 8]
lea ecx, [ebp - 0x38]
call fcn.00411cd0
mov esi, dword [esi]
push 0x24
push edi
call fcn.0046e3ec
add esp, 8
mov edi, esi
cmp byte [esi + 0xd], 0
je 0x411970
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x58]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x38]
push 0x24
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
mov dword [eax + 8], ecx
push dword [ebp - 0x38]
mov dword [ebp - 0x34], 0
call fcn.0046e3ec
mov esi, dword [ebp - 0x54]
add esp, 8
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x4a8ed8]
test eax, eax
mov eax, dword [ebp - 0x4c]
mov ecx, 0xe
cmove edx, ecx
mov dword [0x4a8ed8], edx
test eax, eax
je 0x4119fd
cmp byte [ebp - 0x40], 0
je 0x4119f3
push dword [ebp - 0x48]
mov ecx, eax
call fcn.00414bf0
jmp 0x4119fd
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, byte [ebp - 0x25]
test al, al
jne 0x411a1d
cmp dword [esi + 0x14], 8
jb 0x411a0c
mov esi, dword [esi]
push esi
push str.FileSequence::WriteFile__
call fcn.004136e0
mov al, byte [ebp - 0x25]
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.0046e3fa
mov esp, ebp
pop ebp
ret 8