Function at 0x40bc50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57abb0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6459b8]
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.0045764e
mov dword [ebp - 4], 0
push 0x616ba8
lea ecx, [ebp - 0x10]
call fcn.00406440
mov byte [ebp - 4], 1
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x10]
push str._s.
push eax
call fcn.00405f60
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push 0
push ecx
lea ecx, [ebp - 0x40]
call fcn.004576f5
test eax, eax
je 0x40be21
mov ebx, 2
jmp 0x40bcd0
lea ecx, [ebp - 0x40]
call fcn.00457436
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x24], eax
call fcn.00457610
test eax, eax
jne 0x40be17
push 0x616ba8
lea ecx, [ebp + 8]
call fcn.00406440
mov byte [ebp - 4], bl
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x40]
call fcn.004579d1
mov byte [ebp - 4], 3
mov edx, dword [eax]
test edx, edx
jne 0x40bd15
xor eax, eax
jmp 0x40bd2e
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x40bd20
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp + 8]
call fcn.004050c0
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 0x40bd5a
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 0x616ba8
test eax, eax
je 0x40bda6
lea ecx, [ebp - 0x14]
call fcn.00406440
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 8]
push ecx
push edi
lea edx, [ebp - 0x14]
push 0x596404
push edx
call fcn.00405f60
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add esp, 0x10
push eax
call fcn.0040bc50
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
jmp 0x40bdd8
lea ecx, [ebp - 0x18]
call fcn.00406440
mov byte [ebp - 4], 7
mov ecx, dword [ebp + 8]
push ecx
push edi
lea edx, [ebp - 0x18]
push 0x596404
push edx
call fcn.00405f60
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 0x40bdf4
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 0x40be17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x24], 0
jne 0x40bcd0
lea ecx, [ebp - 0x40]
call fcn.00457350
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40be7b
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 0x40be56
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.00457680
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 0x40be9e
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.00457680
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