Function at 0x405d72
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418ab5
mov eax, dword fs:[0]
push eax
mov eax, 0x4108
call fcn.00418830
mov eax, dword [0x421004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x40a0], eax
mov esi, ebx
lea eax, [ebp - 0x40c4]
mov dword [ebp - 0x4068], esi
mov dword [ebp - 0x4080], ebx
mov dword [ebp - 0x407c], fcn.004011a3
mov dword [ebp - 0x4078], 0x4011bb
mov dword [ebp - 0x40b0], fcn.004011a3
mov dword [ebp - 0x40ac], 0x4011bb
mov dword [ebp - 0x40bc], ecx
mov dword [ebp - 0x40b8], edx
mov dword [ebp - 0x40b4], ebx
mov dword [ebp - 0x40c4], 0x401490
mov dword [ebp - 0x40c0], 0x4014ce
mov dword [ebp - 0x4064], 0x4034c1
mov dword [ebp - 0x4060], 0x403516
mov dword [ebp - 0x405c], 0x403526
mov dword [ebp - 0x4058], 0x403572
mov dword [ebp - 0x4054], eax
mov dword [ebp - 0x404c], ebx
mov dword [ebp - 0x4050], ebx
call fcn.0040135e
lea ecx, [ebp - 0x4114]
call fcn.0040180f
lea eax, [ebp - 0x40b0]
push eax
lea eax, [ebp - 0x407c]
push eax
lea edx, [ebp - 0x4064]
call fcn.0040300a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x405e92
lea edx, [ebp - 0x407c]
lea ecx, [ebp - 0x4114]
call fcn.0040183e
jmp 0x406158
or dword [ebp - 0x409c], 0xffffffff
mov dword [ebp - 0x4074], ebx
mov dword [ebp - 0x4098], ebx
mov dword [ebp - 0x4090], ebx
cmp dword [ebp - 0x40f8], ebx
jbe 0x406143
mov esi, dword [ebp - 0x4104]
add esi, 0x14
mov dword [ebp - 0x4094], esi
mov eax, dword [ebp - 0x40d4]
and dword [ebp - 0x4084], 0
and dword [ebp - 0x4070], 0
mov edi, dword [eax + ebx*4 + 4]
sub edi, dword [eax + ebx*4]
cmp edi, dword [ebp - 0x4080]
jbe 0x405f1c
push dword [ebp - 0x4068]
call fcn.0040bd7e
pop ecx
lea eax, [edi + edi]
mov dword [ebp - 0x4080], edi
push eax
push 0
call fcn.004011a3
mov edi, eax
mov dword [ebp - 0x4068], edi
pop ecx
pop ecx
test edi, edi
jne 0x405f22
push 2
pop edi
jmp 0x40613d
mov edi, dword [ebp - 0x4068]
push edi
mov edx, ebx
lea ecx, [ebp - 0x4114]
call fcn.0040294d
pop ecx
mov ecx, edi
call fcn.004015c5
mov edi, eax
test edi, edi
jne 0x40613d
cmp byte [esi + 5], al
je 0x405f54
push 0x41e8e8
call fcn.00401006
pop ecx
jmp 0x405fa4
lea eax, [ebp - 0x40b0]
push eax
lea eax, [ebp - 0x407c]
push eax
lea eax, [ebp - 0x4070]
push eax
lea eax, [ebp - 0x4084]
push eax
lea eax, [ebp - 0x4098]
push eax
lea eax, [ebp - 0x4074]
push eax
lea eax, [ebp - 0x409c]
push eax
push ebx
lea edx, [ebp - 0x4064]
lea ecx, [ebp - 0x4114]
call fcn.004032d6
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x40613d
push dword [ebp - 0x40a0]
lea ecx, [ebp - 0x44]
call fcn.004061ba
mov esi, eax
and dword [ebp - 4], 0
push 0x41e8ec
call fcn.0040bebb
pop ecx
push eax
push 0x41e8ec
mov ecx, esi
call fcn.004062aa
push dword [ebp - 0x4068]
mov esi, eax
call fcn.0040bebb
pop ecx
push eax
push dword [ebp - 0x4068]
mov ecx, esi
call fcn.004062aa
push eax
lea ecx, [ebp - 0x2c]
call fcn.004061e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0040618f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x40a4], eax
mov dword [ebp - 0x408c], ecx
movzx eax, word [eax]
mov dword [ebp - 0x406c], edx
mov esi, eax
mov dword [ebp - 0x40a8], esi
test ax, ax
je 0x406080
mov ebx, dword [ebp - 0x40a4]
mov esi, ebx
movzx ecx, ax
cmp cx, 0x2f
jne 0x406060
xor eax, eax
mov ecx, ebx
mov word [esi], ax
call fcn.004015aa
mov edx, dword [ebp - 0x406c]
push 0x5c
pop eax
mov word [esi], ax
inc edx
mov dword [ebp - 0x406c], edx
lea esi, [ebx + edx*2]
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x406042
mov ebx, dword [ebp - 0x4090]
mov ecx, dword [ebp - 0x408c]
mov esi, dword [ebp - 0x4094]
cmp byte [esi + 5], 0
je 0x406093
call fcn.004015aa
jmp 0x40610c
push ecx
mov edx, ecx
lea ecx, [ebp - 0x4088]
call fcn.004013d9
pop ecx
test eax, eax
jne 0x406132
mov eax, dword [ebp - 0x4070]
lea ecx, [ebp - 0x4088]
mov edx, dword [ebp - 0x4084]
mov dword [ebp - 0x406c], eax
lea eax, [ebp - 0x406c]
push eax
mov eax, dword [ebp - 0x4074]
lea edx, [edx + eax]
call fcn.0040142c
pop ecx
test eax, eax
jne 0x406132
mov eax, dword [ebp - 0x4070]
cmp dword [ebp - 0x406c], eax
jne 0x406132
lea ecx, [ebp - 0x4088]
call fcn.0040140a
test eax, eax
jne 0x406132
cmp byte [esi + 9], al
je 0x40610c
push dword [esi]
push dword [ebp - 0x408c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x2c]
call fcn.0040618f
inc ebx
add esi, 0x20
mov dword [ebp - 0x4090], ebx
mov dword [ebp - 0x4094], esi
cmp ebx, dword [ebp - 0x40f8]
jb 0x405ec6
jmp 0x40613d
push 0xb
pop edi
lea ecx, [ebp - 0x2c]
call fcn.0040618f
mov esi, dword [ebp - 0x4068]
push dword [ebp - 0x4074]
lea eax, [ebp - 0x407c]
push eax
call dword [ebp - 0x4078]
pop ecx
pop ecx
lea edx, [ebp - 0x407c]
lea ecx, [ebp - 0x4114]
call fcn.0040183e
push esi
call fcn.0040bd7e
test edi, edi
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 - 0x14]
xor ecx, ebp
call fcn.00406c98
leave
ret