Function at 0x413950
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x446ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x45d16c]
mov ecx, dword [eax + 0x14]
push ebx
mov ebx, dword [ecx + 0xac]
mov eax, dword [ebx + 0xa4]
push ebp
mov ebp, dword [ebx + 0xa0]
cmp ebp, eax
push esi
push edi
mov dword [esp + 0x1c], ebx
je 0x413af5
call fcn.00438f74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x18]
push 0x449cf8
push ecx
mov dword [esp + 0x38], 0
call fcn.004037e0
mov eax, dword [0x45d16c]
mov ecx, dword [eax + 0x14]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [ecx + 0xac]
add edx, 0x48
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00407ec0
mov esi, dword [esp + 0x10]
push esi
mov byte [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0x45d16c]
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xac]
add ecx, 0x4c
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00407ec0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x2c], 2
je 0x413a75
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x413a63
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x413a63
push eax
call fcn.00402c50
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x413a56
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
jmp 0x413a75
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004030c0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413abe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ae4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0xa4]
add ebp, 4
cmp ebp, eax
jne 0x413992
mov ebp, dword [ebx + 0xb0]
cmp ebp, dword [ebx + 0xb4]
mov dword [esp + 0x18], ebp
je 0x413c8b
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.00438f74
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x14]
push 0x449cf8
push ecx
mov dword [esp + 0x38], 3
call fcn.004037e0
mov edx, dword [esp + 0x1c]
push 0x449de4
push edx
call fcn.0042928d
add esp, 0x14
test eax, eax
je 0x413c4c
mov ecx, dword [0x45d16c]
mov edx, dword [ecx + 0x14]
lea eax, [esp + 0x10]
push eax
mov eax, dword [edx + 0xac]
add eax, 0x48
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00407ec0
mov esi, dword [esp + 0x14]
push esi
mov byte [esp + 0x30], 4
call ebx
mov eax, dword [0x45d16c]
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx + 0xac]
add edx, 0x4c
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00407ec0
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
mov byte [esp + 0x2c], 5
je 0x413c07
mov edx, dword [edi + 0xc]
test edx, edx
lea esi, [edi + 0xc]
jl 0x413bf5
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x413bf5
push eax
call fcn.00402c50
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x413be8
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea esi, [ebp + 0x10]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jmp 0x413c07
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004030c0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call ebx
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xb4]
add ebp, 4
cmp ebp, ecx
mov dword [esp + 0x18], ebp
jne 0x413b11
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret