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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f80f
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x47d144]
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, ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [esi + 0x30], eax
je 0x4020ad
mov ecx, edx
lea ebx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f20
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402cf0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x401f63
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x401f4c
mov eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x401f63
push 1
push 0x471e4c
lea ecx, [ebp - 0x28]
call fcn.00402580
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401f97
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x401f74
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402580
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x401f8a
mov ecx, dword [ebp - 0x28]
call fcn.00409600
test eax, eax
je 0x4020ad
test edi, edi
jne 0x401fb0
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.004024d0
mov byte [ebp - 4], 1
lea ebx, [edi + 1]
jmp 0x401ff8
mov ecx, edi
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401fd0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00402cf0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 2
mov ebx, 2
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x5c], ebx
jb 0x402006
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00402580
test bl, 2
je 0x402052
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x402052
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402048
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402190
push edx
push ecx
call fcn.004281c2
add esp, 8
test bl, 1
je 0x40205f
lea ecx, [ebp - 0x58]
call fcn.00402e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x30]
jb 0x402071
mov eax, dword [ebp - 0x28]
push 0x472a60
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
call fcn.004477f8
mov eax, dword [ebp - 0x5c]
add esp, 0xc
test eax, eax
je 0x4020ad
push eax
push edi
push 1
push ebx
call fcn.00447b59
add esp, 0x10
push dword [ebp - 0x5c]
cmp edi, eax
je 0x4020e9
call fcn.004478b6
add esp, 4
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x402170
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402166
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402195
jmp 0x402166
call fcn.004478b6
mov ecx, dword [esi + 0x40]
lea edi, [ebp - 0x28]
mov eax, dword [esi + 0x44]
add esp, 4
cmp dword [ebp - 0x14], 8
mov ebx, dword [esi + 0x48]
jb 0x402106
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
cmp ecx, 0xffffffff
jne 0x402115
cmp eax, ecx
je 0x40214b
push 0
push 0x80
push 3
push 0
push 3
push 0x100
push edi
call dword [0x47d050]
mov esi, eax
cmp esi, 0xffffffff
je 0x40214b
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [0x47d03c]
cmp ebx, 0xffffffff
je 0x40215f
mov ecx, ebx
call fcn.00409590
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x4020af
push edx
push ecx
call fcn.004281c2
add esp, 8
mov al, bl
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.004281b1
mov esp, ebp
pop ebp
ret 0xc
call fcn.00443d74
call fcn.00443d74
int3