Function at 0x46e5b0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2f86
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x677e70]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x46e60c
push esi
push esi
push 0x150
push str.FileGeneralFS.cpp
call fcn.0043bc90
add esp, 0x10
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x46e621
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x46e641
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00471180
mov edi, dword [ebp - 0x14]
or ebx, 0xffffffff
test al, al
je 0x46e7b5
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00404520
mov ecx, eax
test ecx, ecx
jne 0x46e695
push 0x80004005
call fcn.00404b10
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00478b40
add esp, 0xc
mov dword [ebp + 0xc], eax
test eax, eax
js 0x46e733
lea ecx, [ebp - 0x3c]
call fcn.00470070
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x12
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00478810
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
js 0x46e70b
lea ecx, [ebp - 0x3c]
call fcn.00458330
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov ebx, dword [eax]
call fcn.00405480
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x30]
push dword [ebp - 0x18]
mov dword [ebp + 0xc], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or ebx, 0xffffffff
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.00457ef0
push dword [ebp - 0x3c]
call fcn.0053e4ac
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e74d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x46e7b0
mov eax, dword [ebp - 0x24]
cmp ebx, eax
je 0x46e789
or esi, 0xffffffff
mov edi, eax
mov edx, dword [ebx]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e779
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 4
cmp ebx, edi
jne 0x46e760
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x28]
sub eax, ebx
sar eax, 2
push eax
push ebx
call fcn.00407ad0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
or ebx, 0xffffffff
jmp 0x46e7d1
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp + 0xc], 0x80004005
test eax, eax
je 0x46e7d1
mov dword [ebp + 0xc], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46e7e8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46e7fd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8