Function at 0x406eda
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41207a
mov eax, dword fs:[0]
push eax
mov eax, 0x4104
call fcn.0040fef0
mov eax, dword [0x41729c]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x40b8], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x40b4], eax
lea eax, [ebp - 0x40c0]
mov dword [ebp - 0x40a8], ecx
mov dword [ebp - 0x4070], ebx
mov dword [ebp - 0x4094], ebx
mov dword [ebp - 0x408c], fcn.00402513
mov dword [ebp - 0x4088], 0x402505
mov dword [ebp - 0x40a0], fcn.00402513
mov dword [ebp - 0x409c], 0x402505
mov dword [ebp - 0x40b0], ebx
mov dword [ebp - 0x40c0], 0x4027c0
mov dword [ebp - 0x40bc], 0x402805
mov dword [ebp - 0x4068], 0x4046b1
mov dword [ebp - 0x4064], 0x404701
mov dword [ebp - 0x4060], 0x404711
mov dword [ebp - 0x405c], 0x40475d
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x4050], ebx
mov dword [ebp - 0x4054], ebx
call fcn.004026a2
lea eax, [ebp - 0x4110]
call fcn.00402b2f
lea eax, [ebp - 0x40a0]
push eax
lea eax, [ebp - 0x408c]
push eax
lea edx, [ebp - 0x4068]
lea ecx, [ebp - 0x4110]
call fcn.004041e3
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x406ffc
lea esi, [ebp - 0x408c]
lea eax, [ebp - 0x4110]
call fcn.00402b5e
mov dword [ebp - 0x406c], edi
cmp edi, ebx
jne 0x4072b0
or dword [ebp - 0x40a4], 0xffffffff
mov dword [ebp - 0x4080], ebx
mov dword [ebp - 0x40ac], ebx
mov dword [ebp - 0x4078], ebx
cmp dword [ebp - 0x40f4], ebx
jbe 0x40729b
mov eax, dword [ebp - 0x4100]
add eax, 0x14
mov dword [ebp - 0x4084], eax
mov edi, dword [ebp - 0x4078]
mov eax, dword [ebp - 0x40d0]
mov esi, dword [eax + edi*4 + 4]
sub esi, dword [eax + edi*4]
mov dword [ebp - 0x4098], ebx
mov dword [ebp - 0x4074], ebx
cmp esi, dword [ebp - 0x4094]
jbe 0x407091
push dword [ebp - 0x4070]
call fcn.00408a7c
pop ecx
lea eax, [esi + esi]
push eax
push ebx
mov dword [ebp - 0x4094], esi
call fcn.00402513
pop ecx
pop ecx
mov dword [ebp - 0x4070], eax
cmp eax, ebx
je 0x407277
push dword [ebp - 0x4070]
mov edx, edi
lea eax, [ebp - 0x4110]
call fcn.00403b37
pop ecx
push dword [ebp - 0x4070]
call fcn.004028f1
pop ecx
mov dword [ebp - 0x406c], eax
cmp eax, ebx
jne 0x40729b
mov eax, dword [ebp - 0x4084]
cmp byte [eax + 5], bl
je 0x4070d7
push 0x4151f0
call fcn.00408eb1
pop ecx
jmp 0x40712c
lea eax, [ebp - 0x40a0]
push eax
lea eax, [ebp - 0x408c]
push eax
lea eax, [ebp - 0x4074]
push eax
lea eax, [ebp - 0x4098]
push eax
lea eax, [ebp - 0x40ac]
push eax
lea eax, [ebp - 0x4080]
push eax
lea eax, [ebp - 0x40a4]
push eax
lea eax, [ebp - 0x4068]
push edi
push eax
lea eax, [ebp - 0x4110]
call fcn.004044d7
add esp, 0x24
mov dword [ebp - 0x406c], eax
cmp eax, ebx
jne 0x40729b
push dword [ebp - 0x40a8]
lea esi, [ebp - 0x48]
call fcn.00407318
mov edi, eax
mov esi, 0x4151f4
push esi
mov dword [ebp - 4], ebx
call fcn.00408e96
pop ecx
mov ebx, eax
push esi
mov eax, edi
call fcn.00407366
push dword [ebp - 0x4070]
push eax
call fcn.00407347
push eax
lea eax, [ebp - 0x2c]
call fcn.004072f0
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00407514
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov edi, eax
jae 0x40718a
lea edi, [ebp - 0x2c]
mov eax, edi
xor ebx, ebx
mov dword [ebp - 0x407c], eax
cmp word [edi], bx
je 0x4071bb
mov esi, edi
cmp word [esi], 0x2f
jne 0x4071b1
xor eax, eax
push edi
mov word [esi], ax
call fcn.004028d4
pop ecx
push 0x5c
pop eax
mov word [esi], ax
inc ebx
lea esi, [edi + ebx*2]
cmp word [esi], 0
jne 0x407199
mov ebx, dword [ebp - 0x4084]
cmp byte [ebx + 5], 0
push dword [ebp - 0x407c]
je 0x4071d5
call fcn.004028d4
pop ecx
jmp 0x407246
lea eax, [ebp - 0x4090]
push eax
call fcn.0040271a
pop ecx
pop ecx
test eax, eax
jne 0x407283
mov eax, dword [ebp - 0x4098]
add eax, dword [ebp - 0x4080]
mov edi, dword [ebp - 0x4074]
push eax
lea eax, [ebp - 0x4090]
push eax
lea esi, [ebp - 0x4074]
mov dword [ebp - 0x4074], edi
call fcn.0040276b
pop ecx
pop ecx
test eax, eax
jne 0x407283
cmp dword [ebp - 0x4074], edi
jne 0x407283
lea esi, [ebp - 0x4090]
call fcn.0040274d
test eax, eax
jne 0x407283
cmp byte [ebx + 9], al
je 0x407246
push dword [ebx]
push dword [ebp - 0x407c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00407514
inc dword [ebp - 0x4078]
mov eax, dword [ebp - 0x4078]
add ebx, 0x20
mov dword [ebp - 0x4084], ebx
xor ebx, ebx
cmp eax, dword [ebp - 0x40f4]
jb 0x40703e
jmp 0x40729b
mov dword [ebp - 0x406c], 2
jmp 0x40729b
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x406c], 0xb
call fcn.00407514
xor ebx, ebx
push dword [ebp - 0x4080]
lea eax, [ebp - 0x408c]
push eax
call dword [ebp - 0x4088]
pop ecx
pop ecx
lea esi, [ebp - 0x408c]
lea eax, [ebp - 0x4110]
call fcn.00402b5e
push dword [ebp - 0x4070]
call fcn.00408a7c
cmp dword [ebp - 0x406c], ebx
pop ecx
sete al
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.004081d0
leave
ret