Function at 0x404b20
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539008
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x58bc40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0041cb22
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401d30
push 1
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00405d30
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00402cc0
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404bac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x404bbd
mov ecx, 0x568a80
lea ebx, [ebp - 0x10]
call fcn.00401950
mov ecx, 0x568a84
lea ebx, [ebp - 0x10]
call fcn.00401950
mov edi, dword [ebp - 0x10]
push 0
push edi
lea ecx, [ebp - 0x40]
call fcn.0041cbc9
test eax, eax
je 0x404d57
lea ecx, [ebp - 0x40]
call fcn.0041c774
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], eax
call fcn.0041cae4
test eax, eax
jne 0x404d4d
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x40]
call eax
test eax, eax
je 0x404d19
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0041ce0c
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x404c74
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x404c64
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x404c64
push eax
call fcn.00401e20
mov edi, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x404c5c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x10], edi
jmp 0x404c74
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.004021f0
mov edi, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [edi - 0x10]
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x18], esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x404cc5
cmp eax, dword [esi]
jne 0x404cc5
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x404d00
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x404dc7
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0051370f
add esp, 0x10
mov ecx, dword [ebp - 0x18]
add ebx, 0x10
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x1c]
call fcn.00404b20
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x404d4d
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x40]
call fcn.0041ce0c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x24], 0
jne 0x404be0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404d81
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0041cb54
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404db3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00402480
int3