Function at 0x4052d0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5512b7
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x5aa170]
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]
push eax
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x250], eax
call fcn.00404b80
lea ecx, [ebp - 0x274]
mov dword [ebp - 4], 0
call fcn.004131af
mov byte [ebp - 4], 1
xorps xmm0, xmm0
push 0x585f0c
lea ecx, [ebp - 0x240]
movlpd qword [ebp - 0x23c], xmm0
movlpd qword [ebp - 0x234], xmm0
movlpd qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x21c], 0
call fcn.00404020
mov byte [ebp - 4], 2
push dword [ebp - 0x2ac]
lea ecx, [ebp - 0x248]
call fcn.00404020
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x248]
mov edx, 0x585f0c
mov ecx, eax
lea ebx, [ebx]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4053b6
test si, si
je 0x4053b2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4053b6
add ecx, 4
add edx, 4
test si, si
jne 0x405390
xor ecx, ecx
jmp 0x4053bb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
sete cl
or ebx, 0xffffffff
test cl, cl
jne 0x405549
lea eax, [ebp - 0x2b0]
push 0x585d50
push eax
call fcn.00404d90
add esp, 8
lea ecx, [ebp - 0x274]
push 0
push dword [ebp - 0x2ac]
call fcn.004133f6
test eax, eax
je 0x405537
lea ebx, [ebx]
lea ecx, [ebp - 0x274]
call fcn.0041359c
mov edi, eax
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x244], edi
call fcn.00413924
test eax, eax
jne 0x405524
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x274]
call fcn.0041369b
mov byte [ebp - 4], 4
mov ecx, dword [eax]
mov esi, dword [ebp - 0x240]
lea edx, [ecx - 0x10]
add esi, 0xfffffff0
cmp edx, esi
je 0x4054a5
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x405490
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x405490
push edx
call fcn.004040f0
add esp, 4
mov dword [ebp - 0x254], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x405485
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 0x40549f
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x240]
call fcn.00403ed0
mov edi, dword [ebp - 0x244]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4054c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x274]
push 0x10
lea ecx, [ebp - 0x274]
call dword [eax + 0x38]
test eax, eax
je 0x4054f2
mov ecx, dword [ebp - 0x258]
push 1
push dword [ebp - 0x240]
call fcn.004052d0
jmp 0x405512
push 0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call fcn.00417ad4
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x585f0c
lea ecx, [ebp - 0x240]
call fcn.00403ed0
test edi, edi
jg 0x405400
lea ecx, [ebp - 0x274]
call fcn.004133aa
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 0x405566
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405589
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.0041335a
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 0x4055c6
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.00529711
mov esp, ebp
pop ebp
ret 8