Function at 0x40a510
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f7e0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5f0bf8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x40]
call fcn.00453c62
mov dword [ebp - 4], 0
push 0x587f8c
lea ecx, [ebp - 0x10]
call fcn.00404420
mov byte [ebp - 4], 1
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x10]
push str._s.
push eax
call fcn.00403cd0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push 0
push ecx
lea ecx, [ebp - 0x40]
call fcn.00453ce6
test eax, eax
je 0x40a6e1
mov ebx, 2
jmp 0x40a590
lea ecx, [ebp - 0x40]
call fcn.00453a4a
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], eax
call fcn.00453c24
test eax, eax
jne 0x40a6d7
push 0x587f8c
lea ecx, [ebp + 8]
call fcn.00404420
mov byte [ebp - 4], bl
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x40]
call fcn.00453fc2
mov byte [ebp - 4], 3
mov edx, dword [eax]
test edx, edx
jne 0x40a5d5
xor eax, eax
jmp 0x40a5ee
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x40a5e0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp + 8]
call fcn.00402e30
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a61a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x40]
call eax
push 0x587f8c
test eax, eax
je 0x40a666
lea ecx, [ebp - 0x14]
call fcn.00404420
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push ecx
push edi
lea edx, [ebp - 0x14]
push str._s_s
push edx
call fcn.00403cd0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add esp, 0x10
push eax
call fcn.0040a510
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
jmp 0x40a698
lea ecx, [ebp - 0x18]
call fcn.00404420
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 8]
push ecx
push edi
lea edx, [ebp - 0x18]
push str._s_s
push edx
call fcn.00403cd0
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
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 0x40a6d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x24], 0
jne 0x40a590
lea ecx, [ebp - 0x40]
call fcn.00453964
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40a73b
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a716
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00453c94
xor eax, 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
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a75e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00453c94
mov eax, 1
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