Function at 0x406390
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551790
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x61308c]
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
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [esi], ax
jne 0x4063eb
xor ecx, ecx
jmp 0x4063ff
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4063f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404d30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 4
push 0x587bfc
call fcn.00406f60
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x270]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.00533a70
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x406587
lea eax, [ebp - 0x270]
push eax
push edi
call fcn.00533a7b
add esp, 8
test eax, eax
jne 0x4066ae
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [eax]
nop word [eax + eax]
mov ecx, 0x587c08
lea eax, [ebp - 0x24c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4064a6
test dx, dx
je 0x4064a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4064a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406480
xor eax, eax
jmp 0x4064ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x406696
mov ecx, 0x587c10
lea eax, [ebp - 0x24c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4064e6
test dx, dx
je 0x4064e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4064e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4064c0
xor eax, eax
jmp 0x4064eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x406696
test byte [ebp - 0x270], 0x10
je 0x4065d7
cmp word [esi], 0
jne 0x40650a
xor ecx, ecx
jmp 0x40651f
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406510
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00404d30
push 1
push 0x587c14
lea ecx, [ebp - 0x28]
call fcn.00406f60
cmp word [ebp - 0x24c], 0
jne 0x406546
xor ecx, ecx
jmp 0x40655f
lea ecx, [ebp - 0x24c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406550
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406f60
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.00406390
test eax, eax
jne 0x406696
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4065a5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, esi
mov dword [ebp - 0x18], 0
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.005120a1
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x40]
call fcn.00404e30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 1
push 0x587c18
call fcn.00406f60
cmp word [ebp - 0x24c], 0
jne 0x406601
xor ecx, ecx
jmp 0x40661f
lea ecx, [ebp - 0x24c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406610
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00406f60
mov ecx, dword [ebp - 0x270]
test cl, 1
je 0x406652
and ecx, 0xfffffffe
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x270], ecx
call ebx
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00533684
add esp, 4
test eax, eax
jne 0x4066cd
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x406682
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404be0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x270]
push eax
push edi
call fcn.00533a7b
add esp, 8
test eax, eax
je 0x406470
push edi
call fcn.00533a4a
push esi
call fcn.00533a86
add esp, 8
test eax, eax
jne 0x406587
lea esi, [eax + 1]
jmp 0x406589
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00404780
jmp 0x406587