Function at 0x41ee80
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462d53
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x4776f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
lea edi, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.004160c0
push 0x24c
lea eax, [ebp - 0x25c]
push esi
push eax
mov dword [ebp - 0x260], esi
call fcn.0042d1d0
add esp, 0xc
mov ecx, edi
push ecx
lea edx, [ebp - 0x270]
push edx
mov ebx, 0x46ae14
call fcn.00415fd0
mov eax, dword [eax]
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
mov dword [ebp - 0x268], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ef27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
jne 0x41ef33
xor esi, esi
jmp 0x41f08d
test byte [ebp - 0x260], 0x10
je 0x41ef9b
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
push 0x46ae18
lea ecx, [ebp - 0x234]
push ecx
call esi
test eax, eax
je 0x41f067
push 0x46ae1c
lea edx, [ebp - 0x234]
push edx
call esi
test eax, eax
je 0x41f067
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esp
lea edx, [ebp + 8]
mov dword [ebp - 0x26c], esp
push edx
push ecx
lea ebx, [ebp - 0x234]
call fcn.00415fd0
add esp, 8
call fcn.0041ee80
add esp, 8
jmp 0x41f067
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x264]
push ecx
lea ebx, [ebp - 0x234]
call fcn.00415fd0
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x264]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [ebp - 0x264]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x26c], esp
mov edi, esp
call edx
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x41effc
cmp eax, dword [esi - 0x10]
jne 0x41effc
lea ebx, [esi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x41f034
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x41f0ed
mov eax, dword [esi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0042af5b
add esp, 0x10
add ebx, 0x10
mov dword [edi], ebx
call fcn.00416370
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x268]
lea ecx, [ebp - 0x260]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41ef33
push edi
lea esi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x41f0a9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x41f0a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x41f0cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ab2f
mov esp, ebp
pop ebp
ret
call fcn.00413640
int3