Function at 0x405a5f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f43a
mov eax, dword fs:[0]
push eax
mov eax, 0x4104
call fcn.0040d2b0
mov eax, dword [0x41429c]
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.0040108a
mov dword [ebp - 0x4088], 0x4010a2
mov dword [ebp - 0x40a0], fcn.0040108a
mov dword [ebp - 0x409c], 0x4010a2
mov dword [ebp - 0x40b0], ebx
mov dword [ebp - 0x40c0], 0x401345
mov dword [ebp - 0x40bc], 0x40138a
mov dword [ebp - 0x4068], 0x403236
mov dword [ebp - 0x4064], 0x403286
mov dword [ebp - 0x4060], 0x403296
mov dword [ebp - 0x405c], 0x4032e2
mov dword [ebp - 0x4058], eax
mov dword [ebp - 0x4050], ebx
mov dword [ebp - 0x4054], ebx
call fcn.00401227
lea eax, [ebp - 0x4110]
call fcn.004016b4
lea eax, [ebp - 0x40a0]
push eax
lea eax, [ebp - 0x408c]
push eax
lea edx, [ebp - 0x4068]
lea ecx, [ebp - 0x4110]
call fcn.00402d68
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x405b81
lea esi, [ebp - 0x408c]
lea eax, [ebp - 0x4110]
call fcn.004016e3
mov dword [ebp - 0x406c], edi
cmp edi, ebx
jne 0x405e35
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 0x405e20
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 0x405c16
push dword [ebp - 0x4070]
call fcn.0040738c
pop ecx
lea eax, [esi + esi]
push eax
push ebx
mov dword [ebp - 0x4094], esi
call fcn.0040108a
pop ecx
pop ecx
mov dword [ebp - 0x4070], eax
cmp eax, ebx
je 0x405dfc
push dword [ebp - 0x4070]
mov edx, edi
lea eax, [ebp - 0x4110]
call fcn.004026bc
pop ecx
push dword [ebp - 0x4070]
call fcn.00401476
pop ecx
mov dword [ebp - 0x406c], eax
cmp eax, ebx
jne 0x405e20
mov eax, dword [ebp - 0x4084]
cmp byte [eax + 5], bl
je 0x405c5c
push 0x4121f0
call fcn.004077c1
pop ecx
jmp 0x405cb1
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.0040305c
add esp, 0x24
mov dword [ebp - 0x406c], eax
cmp eax, ebx
jne 0x405e20
push dword [ebp - 0x40a8]
lea esi, [ebp - 0x48]
call fcn.00405e9d
mov edi, eax
mov esi, 0x4121f4
push esi
mov dword [ebp - 4], ebx
call fcn.004077a6
pop ecx
mov ebx, eax
push esi
mov eax, edi
call fcn.00405eeb
push dword [ebp - 0x4070]
push eax
call fcn.00405ecc
push eax
lea eax, [ebp - 0x2c]
call fcn.00405e75
or dword [ebp - 4], 0xffffffff
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00406099
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov edi, eax
jae 0x405d0f
lea edi, [ebp - 0x2c]
mov eax, edi
xor ebx, ebx
mov dword [ebp - 0x407c], eax
cmp word [edi], bx
je 0x405d40
mov esi, edi
cmp word [esi], 0x2f
jne 0x405d36
xor eax, eax
push edi
mov word [esi], ax
call fcn.00401459
pop ecx
push 0x5c
pop eax
mov word [esi], ax
inc ebx
lea esi, [edi + ebx*2]
cmp word [esi], 0
jne 0x405d1e
mov ebx, dword [ebp - 0x4084]
cmp byte [ebx + 5], 0
push dword [ebp - 0x407c]
je 0x405d5a
call fcn.00401459
pop ecx
jmp 0x405dcb
lea eax, [ebp - 0x4090]
push eax
call fcn.0040129f
pop ecx
pop ecx
test eax, eax
jne 0x405e08
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.004012f0
pop ecx
pop ecx
test eax, eax
jne 0x405e08
cmp dword [ebp - 0x4074], edi
jne 0x405e08
lea esi, [ebp - 0x4090]
call fcn.004012d2
test eax, eax
jne 0x405e08
cmp byte [ebx + 9], al
je 0x405dcb
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.00406099
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 0x405bc3
jmp 0x405e20
mov dword [ebp - 0x406c], 2
jmp 0x405e20
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x406c], 0xb
call fcn.00406099
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.004016e3
push dword [ebp - 0x4070]
call fcn.0040738c
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.00406ad9
leave
ret