Function at 0x406220
Capabilities:
Set file attributes

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 0x4242db
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x268
mov eax, dword [0x433064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x238]
call fcn.00407680
mov dword [ebp - 4], 0
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
push 6
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x228]
mov eax, 0x7ffffffe
sub eax, edx
mov dword [ebp - 0x254], edx
cmp eax, 0xd
jb 0x4064ef
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
lea ecx, [edx + 0xd]
mov dword [ebp - 0x264], 0
cmovae eax, dword [ebp - 0x238]
lea esi, [ebp - 0x274]
mov edi, 7
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], 0
xorps xmm0, xmm0
mov dword [ebp - 0x258], ecx
movups xmmword [ebp - 0x274], xmm0
cmp ecx, edi
jbe 0x4063af
mov edi, ecx
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x406336
mov eax, 0x7fffffff
mov edi, 0x7ffffffe
add eax, eax
jmp 0x406357
mov eax, 0xa
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x7fffffff
ja 0x4064f9
add eax, eax
cmp eax, 0x1000
jb 0x40638a
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4064f9
push ecx
call fcn.0040ab0e
add esp, 4
test eax, eax
je 0x4064f4
mov ecx, dword [ebp - 0x258]
lea esi, [eax + 0x23]
mov edx, dword [ebp - 0x254]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4063a9
test eax, eax
je 0x4063a7
push eax
call fcn.0040ab0e
mov ecx, dword [ebp - 0x258]
add esp, 4
mov edx, dword [ebp - 0x254]
mov esi, eax
jmp 0x4063a9
xor esi, esi
mov dword [ebp - 0x274], esi
movups xmm0, xmmword [str._c_attrib_h]
mov dword [ebp - 0x264], ecx
lea ecx, [esi + 0x1a]
mov dword [ebp - 0x260], edi
movups xmmword [esi], xmm0
movq xmm0, qword [0x42f9a0]
movq qword [esi + 0x10], xmm0
mov ax, word [0x42f9a8]
mov word [esi + 0x18], ax
lea eax, [edx + edx]
push eax
push dword [ebp - 0x25c]
push ecx
call fcn.0040bd30
mov eax, dword [ebp - 0x254]
xor ecx, ecx
mov word [esi + eax*2 + 0x1a], cx
push 0x42f98c
lea edx, [ebp - 0x274]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call fcn.00408590
mov ecx, dword [ebp - 0x260]
add esp, 0x10
cmp ecx, 8
jb 0x406459
mov edx, dword [ebp - 0x274]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40644f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064f4
push ecx
push edx
call fcn.0040ab3e
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp ecx, 8
jb 0x406495
mov edx, dword [ebp - 0x250]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40648b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064fe
push ecx
push edx
call fcn.0040ab3e
add esp, 8
mov ecx, dword [ebp - 0x224]
cmp ecx, 8
jb 0x4064d1
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4064c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4064fe
push ecx
push edx
call fcn.0040ab3e
add esp, 8
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.0040a8fe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401450
call fcn.0041153c
call fcn.004013b0
call fcn.0041153c
int3