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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44be7f
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x463188]
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 - 0x28], 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 0x402123
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f96
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402d80
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x401fd9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x401fc2
mov eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x401fd9
push 1
push 0x45b22c
lea ecx, [ebp - 0x28]
call fcn.00402600
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40200d
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x401fea
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402600
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
jb 0x402000
mov ecx, dword [ebp - 0x28]
call fcn.0040a960
test eax, eax
je 0x402123
test edi, edi
jne 0x402026
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402550
mov byte [ebp - 4], 1
lea ebx, [edi + 1]
jmp 0x40206e
mov ecx, edi
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402046
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.00402d80
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 0x40207c
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00402600
test bl, 2
je 0x4020c8
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x4020c8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4020be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402206
push edx
push ecx
call fcn.00429a23
add esp, 8
test bl, 1
je 0x4020d5
lea ecx, [ebp - 0x58]
call fcn.00402e90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x30]
jb 0x4020e7
mov eax, dword [ebp - 0x28]
push 0x45bdd8
push eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
call fcn.00437cf7
mov eax, dword [ebp - 0x5c]
add esp, 0xc
test eax, eax
je 0x402123
push eax
push edi
push 1
push ebx
call fcn.00438058
add esp, 0x10
push dword [ebp - 0x5c]
cmp edi, eax
je 0x40215f
call fcn.00437db5
add esp, 4
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4021e6
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4021dc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40220b
jmp 0x4021dc
call fcn.00437db5
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 0x40217c
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], eax
cmp ecx, 0xffffffff
jne 0x40218b
cmp eax, ecx
je 0x4021c1
push 0
push 0x80
push 3
push 0
push 3
push 0x100
push edi
call dword [0x463028]
mov esi, eax
cmp esi, 0xffffffff
je 0x4021c1
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [0x463018]
cmp ebx, 0xffffffff
je 0x4021d5
mov ecx, ebx
call fcn.0040a900
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov bl, 1
jmp 0x402125
push edx
push ecx
call fcn.00429a23
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.004299ea
mov esp, ebp
pop ebp
ret 0xc
call fcn.0042e9c4
call fcn.0042e9c4
int3