Function at 0x510b00
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c55dd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x72b01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.005089b0
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x510b4d
push str.Empty_filename_passed_to_function
jmp 0x510b6b
xor eax, eax
lea ecx, [ebp - 0x24]
push 1
mov word [ebp - 0x14], ax
push eax
push dword [ebp - 0x14]
call fcn.004924a0
cmp eax, 0xffffffff
je 0x510b9e
push str.Broken_filename_passed_to_function
movaps xmm0, xmmword [0x5e0c10]
lea eax, [ebp - 0x44]
push eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x5cd218
call fcn.004a1bc0
add esp, 8
call fcn.005a132a
mov dword [eax], 0x16
xor al, al
mov byte [ebp - 0xd], al
jmp 0x510ddc
cmp byte [ebp + 0xc], 0
je 0x510d9d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004e3380
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
call fcn.004e4c20
mov edx, dword [ebp - 0x24]
mov esi, eax
add esp, 0x10
mov ecx, dword [esi]
mov dword [ebp - 0x24], ecx
mov ecx, dword [esi + 4]
mov dword [esi], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov eax, dword [esi + 8]
mov dword [esi + 4], edx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x510c10
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x510c10
push 4
push 2
push dword [ebp - 0x30]
call fcn.0045fe90
add esp, 0xc
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x510c3a
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x510c3a
push 4
push 2
push dword [ebp - 0x3c]
call fcn.0045fe90
add esp, 0xc
mov esi, dword [ebp - 0x1c]
mov edi, esi
mov dword [ebp - 0x14], 0
test edi, edi
jle 0x510d93
nop
mov ebx, dword [ebp - 0x20]
cmp edi, esi
cmovb esi, edi
cmp esi, 2
jne 0x510c89
movzx ecx, word [ebx]
lea eax, [ecx - 0x41]
cmp eax, 0x39
ja 0x510c70
lea eax, [ecx - 0x5b]
cmp eax, 5
ja 0x510c7e
cmp ecx, 0x7f
jbe 0x510c89
call fcn.00492950
test al, al
je 0x510c89
cmp word [ebx + 2], 0x3a
je 0x510d93
push esi
push ebx
lea ecx, [ebp - 0x30]
call fcn.0048d910
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.0050f9b0
add esp, 8
test al, al
je 0x510d62
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.005300f0
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00496d70
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x3c]
test eax, eax
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
or ebx, 0xffffffff
test ecx, ecx
je 0x510d02
mov eax, ebx
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x510d02
push 4
push 2
push dword [ebp - 0x3c]
call fcn.0045fe90
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x510d59
mov eax, 0x5c
lea ecx, [ebp - 0x24]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x14]
push 1
dec eax
push eax
push dword [ebp - 0x18]
call fcn.00492ad0
mov edi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x510d4a
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x510d4a
push 4
push 2
push dword [ebp - 0x30]
call fcn.0045fe90
add esp, 0xc
mov dword [ebp - 0x14], edi
test edi, edi
jle 0x510d93
mov esi, dword [ebp - 0x1c]
jmp 0x510c50
cmp dword [ebp - 0x14], 0
setne al
jmp 0x510d64
xor al, al
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0xd], al
test ecx, ecx
je 0x510d8b
mov eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x510d8b
push 4
push 2
push dword [ebp - 0x30]
call fcn.0045fe90
add esp, 0xc
mov al, byte [ebp - 0xd]
or ebx, 0xffffffff
jmp 0x510ddc
mov al, 1
or ebx, 0xffffffff
mov byte [ebp - 0xd], al
jmp 0x510ddc
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.005089b0
push eax
mov byte [ebp - 4], 4
call fcn.00511430
mov edx, dword [ebp - 0x3c]
add esp, 4
mov byte [ebp - 0xd], al
test edx, edx
je 0x510ddc
mov ecx, ebx
lock xadd dword [edx], ecx
cmp ecx, 1
jne 0x510ddc
push 4
push 2
push dword [ebp - 0x3c]
call fcn.0045fe90
mov al, byte [ebp - 0xd]
add esp, 0xc
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x510dfe
lock xadd dword [ecx], ebx
cmp ebx, 1
jne 0x510dfe
push 4
push 2
push dword [ebp - 0x24]
call fcn.0045fe90
mov al, byte [ebp - 0xd]
add esp, 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