Function at 0x405ee0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5480e7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x5ac1b8]
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 dword [ebp - 0x258], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2b0]
push eax
mov dword [ebp - 0x250], eax
call fcn.00405790
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 0
call fcn.00413cbc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
push 0x58bfbc
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
call fcn.00404ba0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
push dword [ebp - 0x2ac]
call fcn.00404ba0
mov byte [ebp - 4], 3
mov edx, 0x58bfbc
mov eax, dword [ebp - 0x248]
mov ecx, eax
lea ebx, [ebx]
mov si, word [ecx]
cmp si, word [edx]
jne 0x405fc6
test si, si
je 0x405fc2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x405fc6
add ecx, 4
add edx, 4
test si, si
jne 0x405fa0
xor ecx, ecx
jmp 0x405fcb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
or ebx, 0xffffffff
test cl, cl
jne 0x406159
lea eax, [ebp - 0x2b0]
push 0x58bdfc
push eax
call fcn.004059a0
add esp, 8
lea ecx, [ebp - 0x274]
push 0
push dword [ebp - 0x2ac]
call fcn.00413f09
test eax, eax
je 0x406147
lea ebx, [ebx]
lea ecx, [ebp - 0x274]
call fcn.004140b1
mov edi, eax
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x244], edi
call fcn.00414441
test eax, eax
jne 0x406134
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x274]
call fcn.004141b2
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x240]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4060b5
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4060a0
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4060a0
push edx
call fcn.00404c70
add esp, 4
mov dword [ebp - 0x254], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x406095
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x254]
add eax, 0x10
mov dword [ebp - 0x240], eax
jmp 0x4060af
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00404a50
mov edi, dword [ebp - 0x244]
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4060d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x274]
push 0x10
call dword [eax + 0x38]
test eax, eax
je 0x406102
mov ecx, dword [ebp - 0x258]
push 1
push dword [ebp - 0x240]
call fcn.00405ee0
jmp 0x406122
push 0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call fcn.00418657
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x58bfbc
lea ecx, [ebp - 0x240]
call fcn.00404a50
test edi, edi
jg 0x406010
lea ecx, [ebp - 0x274]
call fcn.00413ebd
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x248]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406176
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406199
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 0
call fcn.00413e6d
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2ac]
add edx, 0xfffffff0
mov dword [ebp - method.CUtlCommonPath.virtual_0], vtable.CUtlCommonPath.0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4061d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0052f13d
mov esp, ebp
pop ebp
ret 8