Function at 0x404480
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538b58
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x58bcc0]
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.00415493
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.00405690
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00405900
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 0x40450c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40451d
mov ecx, 0x566cf4
lea ebx, [ebp - 0x10]
call fcn.00401950
mov ecx, 0x566cf8
lea ebx, [ebp - 0x10]
call fcn.00401950
mov edi, dword [ebp - 0x10]
push 0
push edi
lea ecx, [ebp - 0x40]
call fcn.0041553a
test eax, eax
je 0x4046b7
lea ecx, [ebp - 0x40]
call fcn.004150e5
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], eax
call fcn.00415455
test eax, eax
jne 0x4046ad
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x40]
call eax
test eax, eax
je 0x404679
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004157c1
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x4045d4
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4045c4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4045c4
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 0x4045bc
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 0x4045d4
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 0x4045f7
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 0x404625
cmp eax, dword [esi]
jne 0x404625
mov ebx, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x404660
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 0x404727
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.00513251
add esp, 0x10
mov ecx, dword [ebp - 0x18]
add ebx, 0x10
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x1c]
call fcn.00404480
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4046ad
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x40]
call fcn.004157c1
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 0x4046ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x24], 0
jne 0x404540
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 0x4046e1
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.004154c5
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 0x404713
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