Function at 0x41e930
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4c8598
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.00484590
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41e979
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x28], 1
call fcn.00484590
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41e9a8
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x28], 2
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 4
push 0x5c
push eax
call fcn.004a4635
add esp, 8
test eax, eax
je 0x41ea22
sub eax, dword [esi]
cmp eax, 0xffffffff
je 0x41ea22
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.004061a0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 3
call fcn.004028f0
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41ea1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x18]
call fcn.004028f0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x5c
push esi
call fcn.004a4635
add esp, 8
test eax, eax
je 0x41eb2e
sub eax, esi
cmp eax, 0xffffffff
je 0x41eb2e
xor edx, edx
test ebx, ebx
setne dl
mov dword [esp + 0x1c], edx
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.004061a0
mov byte [esp + 0x28], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x41eacf
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x41eabd
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x41eabd
push eax
call fcn.00402860
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x41eab4
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebp + 0x10]
mov dword [esp + 0x14], esi
jmp 0x41eacf
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402430
mov esi, dword [esp + 0x14]
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eaf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1c], 0
je 0x41e96f
push ebx
push esi
call fcn.004a30dd
add esp, 8
test eax, eax
je 0x41eb14
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x5c
push esi
call fcn.004a4635
add esp, 8
test eax, eax
je 0x41eb2e
sub eax, esi
cmp eax, 0xffffffff
jne 0x41ea64
lea eax, [ebx - 0x10]
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eb4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eb70
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eb98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8