Function at 0x410f40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4480ac
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x45c070]
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 ecx, dword [ebp + 8]
mov eax, 0x5c
mov word [ebp - 0x1c], ax
xor eax, eax
mov dword [ebp - 0x480], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x478]
push edx
mov dword [ebp - 4], eax
call fcn.004037a0
push eax
lea eax, [ebp - 0x47c]
push eax
mov ebx, 0x452744
mov byte [ebp - 4], 1
call fcn.00406e70
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [eax]
lea esi, [ebp - 0x474]
call fcn.00422550
mov esi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410fe9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41100f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x411105
mov esi, dword [ebp + 0x10]
cmp dword [ebp - 0x14], 0
je 0x4110a2
mov eax, dword [ebp - 0x474]
shr eax, 4
and eax, 1
je 0x41105f
cmp word [ebp - 0x448], 0x2e
jne 0x41105f
mov cx, word [ebp - 0x446]
test cx, cx
je 0x4110df
cmp cx, 0x2e
jne 0x41105f
cmp word [ebp - 0x444], 0
je 0x4110df
test eax, eax
je 0x4110a2
lea ecx, [ebp - 0x478]
push ecx
lea ebx, [ebp - 0x474]
call fcn.00422380
push esi
mov byte [ebp - 4], 3
mov eax, dword [eax]
push edi
push eax
call fcn.00410f40
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x478]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4110d3
lea ecx, [ebp - 0x47c]
push ecx
lea ebx, [ebp - 0x474]
call fcn.00422380
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x47c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4110df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x411108
cmp dword [ebp - 0x14], 0
je 0x411108
lea ecx, [ebp - 0x474]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x41101d
mov eax, dword [ebp - 0x18]
test edi, edi
je 0x411139
mov edx, dword [ebp - 0x480]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x411135
cmp eax, 0xffffffff
je 0x411135
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x411155
mov dword [ebp - 0x14], 0
test eax, eax
je 0x411150
cmp eax, 0xffffffff
je 0x411150
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
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.0042decf
mov esp, ebp
pop ebp
ret