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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bc20
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x5a4eec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x81], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
mov eax, dword [ecx]
push edx
call dword [eax + 0x10]
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
push esi
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 1
push 0x5a9d60
push eax
call fcn.0045b120
add esp, 0xc
push 0xffffffffffffffff
mov byte [ebp - 4], 2
lea eax, [ebp - 0x80]
push 0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
call fcn.0044dd80
mov byte [ebp - 4], 3
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0x10
mov edx, 0x5a5868
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
push ecx
mov ecx, 1
call fcn.00454c30
add esp, 0xc
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x38]
push 0xffffffffffffffff
push 0
push eax
call fcn.0044dd80
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0044b890
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4598a0
xor edi, edi
nop dword [eax]
push str._gliid
lea eax, [esi + edi]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00453a00
add esp, 0xc
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 0x10
cmovae eax, dword [ebp - 0x68]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x459845
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x20]
push 0
push ecx
push dword [ebp - 0x28]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x68]
push 6
cmovae eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 0x81], 1
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x45987b
mov eax, dword [ebp - 0x68]
inc ecx
cmp ecx, 0x1000
jb 0x459872
test al, 0x1f
jne 0x4598b8
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x4598b8
sub eax, ecx
cmp eax, 4
jb 0x4598b8
cmp eax, 0x23
ja 0x4598b8
mov eax, ecx
push eax
call fcn.0051421e
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
inc ebx
sub ecx, esi
add edi, 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4597c0
mov eax, dword [ebp - 0x6c]
cmp eax, 0x10
jb 0x4598ed
mov ecx, dword [ebp - 0x80]
inc eax
cmp eax, 0x1000
jb 0x4598e1
test cl, 0x1f
je 0x4598bd
call fcn.0051a14c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4598c9
call fcn.0051a14c
sub ecx, eax
cmp ecx, 4
jae 0x4598d5
call fcn.0051a14c
cmp ecx, 0x23
jbe 0x4598df
call fcn.0051a14c
mov ecx, eax
push ecx
call fcn.0051421e
mov esi, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x80], 0
cmp eax, 0x10
jb 0x45994c
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x1000
jb 0x459940
test cl, 0x1f
je 0x45991c
call fcn.0051a14c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x459928
call fcn.0051a14c
sub ecx, eax
cmp ecx, 4
jae 0x459934
call fcn.0051a14c
cmp ecx, 0x23
jbe 0x45993e
call fcn.0051a14c
mov ecx, eax
push ecx
call fcn.0051421e
mov esi, dword [ebp - 0x1c]
add esp, 4
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
test esi, esi
je 0x4599dd
push dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00454950
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x1c]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x459998
call fcn.0051a14c
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x4599d4
test byte [ebp - 0x1c], 0x1f
je 0x4599b0
call fcn.0051a14c
mov eax, dword [esi - 4]
cmp eax, esi
jb 0x4599bc
call fcn.0051a14c
sub esi, eax
cmp esi, 4
jae 0x4599c8
call fcn.0051a14c
cmp esi, 0x23
jbe 0x4599d2
call fcn.0051a14c
mov esi, eax
push esi
call fcn.0051421e
add esp, 4
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514739
mov esp, ebp
pop ebp
ret 4