Function at 0x413ec5
Capabilities:
Set file attributes

Disassembly:
push ebp
sub esp, 0x170
lea ebp, [esp - 4]
mov eax, dword [0x56d790]
xor eax, ebp
mov dword [ebp + 0x170], eax
push 0x24
mov eax, 0x50d09a
call fcn.004e2589
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x17c]
cmp dword [eax - 0xc], ebx
je 0x414022
push 0x521f24
lea ecx, [ebp + 0x17c]
call fcn.004041de
test eax, eax
je 0x414022
push 0x522080
lea ecx, [ebp + 0x17c]
call fcn.004041de
test eax, eax
je 0x414022
push ecx
lea eax, [ebp + 0x17c]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
call fcn.004139c3
pop ecx
cmp eax, ebx
je 0x414022
mov eax, str._temp_
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], str._appdata_
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], ebx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401769
mov byte [ebp - 4], 2
push 1
lea edi, [ebp - 0x18]
call fcn.0041b3bb
pop ecx
test eax, eax
je 0x414056
push dword [ebp - 0x18]
lea ecx, [ebp + 0x17c]
call fcn.00403fee
test eax, eax
je 0x413fb3
push dword [ebp - 0x18]
xor ecx, ecx
lea esi, [ebp + 0x17c]
call fcn.0041271e
test eax, eax
jge 0x4140ba
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00401898
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x30]
cmp eax, ebx
jne 0x413f69
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.CCoreFile::RemoveDirectoryTree
call fcn.00401769
mov byte [ebp - 4], 6
push 0x147
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str..CoreFile.cpp
call fcn.00401769
mov byte [ebp - 4], 7
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 0x17c]
push ecx
push str.RemoveDirectoryTree_called_on_a_restricted_folder_
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 8
push 1
mov byte [ebp - 4], bl
call fcn.0041129b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x17c]
call fcn.00401898
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x170]
xor ecx, ebp
call fcn.004dd215
add ebp, 0x174
leave
ret
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.CCoreFile::RemoveDirectoryTree
call fcn.00401769
mov byte [ebp - 4], 3
push 0x13a
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str..CoreFile.cpp
call fcn.00401769
mov byte [ebp - 4], 4
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
lea ecx, [ebp - 0x18]
push ecx
push str.Bad_folder_name_in_allowedFolders_
push eax
call fcn.004040f8
add esp, 0xc
mov byte [ebp - 4], 5
push 1
mov byte [ebp - 4], 2
call fcn.0041129b
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00401898
jmp 0x414022
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00401898
lea eax, [ebp]
push eax
call fcn.004134bc
mov byte [ebp - 4], 9
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x522120
call fcn.00401769
mov byte [ebp - 4], 0xa
push ecx
lea eax, [ebp + 0x17c]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 9
lea esi, [ebp - 0x20]
call fcn.00414ad0
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
push ebx
push 2
push ecx
mov eax, esi
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp]
call fcn.00413569
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, 0x80
jle 0x41419b
push edi
push eax
call esi
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xe
call fcn.00413ec5
pop ecx
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00413723
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x14]
call fcn.004043ce
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10]
call fcn.00401898
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jg 0x41414c
lea eax, [ebp]
call fcn.004138ff
push ebx
push 1
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp]
call fcn.00413569
mov byte [ebp - 4], 0x12
jmp 0x414201
push edi
push eax
call esi
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 0xe
call fcn.00413e3e
pop ecx
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.00413723
mov byte [ebp - 4], 0x14
push eax
lea ecx, [ebp - 0x14]
call fcn.004043ce
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10]
call fcn.00401898
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
jg 0x4141cf
lea eax, [ebp]
call fcn.004138ff
push ecx
lea eax, [ebp + 0x17c]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.0040184e
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0xe
call fcn.00413e71
pop ecx
mov esi, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x14]
call fcn.00401898
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x20]
call fcn.00401898
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.0041351b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x17c]
call fcn.00401898
mov eax, esi
jmp 0x414033