Function at 0x408e21
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4598fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], 0
cmp dword [ebp + 0x20], 0
jne 0x408e62
cmp dword [ebp + 0xc], 0
jne 0x408e62
xor al, al
jmp 0x4092ec
lea ecx, [ebp - 0x60]
call fcn.0040de80
mov dword [ebp - 4], 0
mov ax, word [ebp + 8]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0xb8]
call fcn.00407363
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x64]
call fcn.0043fa90
mov byte [ebp - 4], 1
cmp dword [ebp + 0x14], 0
je 0x408ea6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xbc], eax
jmp 0x408eeb
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x60]
call fcn.0040ee18
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xb4]
or edx, 1
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xc4]
call fcn.00401e00
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0043fa90
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0xb4]
and edx, 1
test edx, edx
je 0x408f20
and dword [ebp - 0xb4], 0xfffffffe
lea ecx, [ebp - 0x90]
call fcn.0043fa22
push 0x470c70
lea ecx, [ebp - 0x64]
call fcn.0043c719
mov eax, dword [ebp + 0x10]
and eax, 0xff
test eax, eax
je 0x408f84
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.0040871a
add esp, 8
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0xb4]
or edx, 2
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], ecx
jmp 0x408fcf
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
lea edx, [ebp - 0x9c]
push edx
call fcn.004089e7
add esp, 8
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xb4]
or al, 4
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0xd0], edx
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
push ecx
push 0x470c74
lea edx, [ebp - 0xa0]
push edx
call fcn.0043fd2b
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x64]
call fcn.0043fe3a
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.0043fa22
mov dword [ebp - 4], 5
mov edx, dword [ebp - 0xb4]
and edx, 4
test edx, edx
je 0x409050
and dword [ebp - 0xb4], 0xfffffffb
lea ecx, [ebp - 0x9c]
call fcn.0043fa22
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0xb4]
and eax, 2
test eax, eax
je 0x409076
and dword [ebp - 0xb4], 0xfffffffd
lea ecx, [ebp - 0x98]
call fcn.0043fa22
mov cx, word [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xb8]
call fcn.00408d93
and eax, 0xff
test eax, eax
je 0x4090ec
lea ecx, [ebp - 0x64]
call fcn.00401e00
push eax
call fcn.00408ad5
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x64]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 0xa4], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0043fa22
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0043fa22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0040df17
mov al, byte [ebp - 0xa4]
jmp 0x4092ec
mov ax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0xb8]
call fcn.00407546
and eax, 0xff
test eax, eax
jne 0x40913e
mov byte [ebp - 0xa8], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0043fa22
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0043fa22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0040df17
mov al, byte [ebp - 0xa8]
jmp 0x4092ec
lea ecx, [ebp - 0x64]
call fcn.00401e00
push eax
lea ecx, [ebp - 0xac]
push ecx
call fcn.0040858c
add esp, 8
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], edx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xe8]
call fcn.00401e00
push eax
call fcn.00408ad5
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.0043fa22
push 0x1021
lea ecx, [ebp - 0x64]
call fcn.00401e00
push eax
lea ecx, [ebp - 0x84]
call fcn.0044013d
mov byte [ebp - 4], 9
cmp dword [ebp + 0x18], 0
je 0x4091c2
lea ecx, [ebp - 0x60]
call fcn.0040ecce
mov dword [ebp - 0xec], eax
jmp 0x4091cc
mov dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x88], 0
push 0
mov ecx, dword [ebp + 0x20]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0040b6eb
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
call fcn.0040afe0
push eax
lea ecx, [ebp - 0x70]
call fcn.0040b000
push eax
mov ecx, dword [ebp - 0xb8]
call fcn.00407947
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x409270
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x70]
call fcn.0040b000
push eax
lea ecx, [ebp - 0x84]
call fcn.004403f1
mov eax, dword [ebp - 0x88]
add eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], eax
cmp dword [ebp + 0x18], 0
je 0x409270
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [ebp + 0x18]
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x409270
jmp 0x409284
lea ecx, [ebp - 0x70]
call fcn.0040afe0
cmp dword [ebp - 0x8c], eax
je 0x4091f1
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0xb8]
call fcn.00407dde
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xb0], al
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x70]
call fcn.0040b728
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.004401dd
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0043fa22
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.0043fa22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.0040df17
mov al, byte [ebp - 0xb0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c