Function at 0x4eda60
Capabilities:
Delete directory

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.004ecbf0
cmp byte [esp + 0x20], 0
je 0x4edc92
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004ca020
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004c9d30
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
call fcn.0047fb70
mov ecx, dword [esp + 0x20]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4edac1
mov eax, dword [esp + 0x20]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4edadb
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0xc]
mov esi, dword [ecx + 8]
push ebp
push edi
xor edi, edi
test esi, esi
jle 0x4edbd5
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
call fcn.00481220
mov eax, dword [esp + 0x18]
cmp dword [eax + 8], 2
jne 0x4edb37
mov eax, dword [eax + 0xc]
mov cx, word [eax]
mov word [esp + 0x28], cx
lea ecx, [esp + 0x28]
call fcn.0047efe0
test al, al
je 0x4edb37
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
cmp word [edx + 2], 0x3a
je 0x4edbf9
lea eax, [esp + 0x18]
push eax
xor esi, esi
call fcn.004ed690
add esp, 4
test al, al
je 0x4edc11
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004ea500
add esp, 8
mov ecx, eax
call fcn.004818a0
push eax
call ebp
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4edb89
mov edx, dword [esp + 0x1c]
push edx
call fcn.0047fb60
add esp, 4
test bl, bl
je 0x4edc4f
lea eax, [esp + 0x12]
push eax
call fcn.004c9ad0
movzx ecx, word [eax]
add esp, 4
push 1
dec edi
push edi
push ecx
lea ecx, [esp + 0x20]
call fcn.004811d0
mov edx, dword [esp + 0x18]
mov esi, eax
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4edbcb
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047fb60
add esp, 4
mov edi, esi
test esi, esi
jg 0x4edaf4
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4edbef
mov eax, dword [esp + 0x14]
push eax
call fcn.0047fb60
add esp, 4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4edbd5
mov eax, dword [esp + 0x18]
push eax
call fcn.0047fb60
add esp, 4
jmp 0x4edbd5
mov ecx, dword [esp + 0x18]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4edc2b
mov eax, dword [esp + 0x18]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4edc45
mov eax, dword [esp + 0x14]
push eax
call fcn.0047fb60
add esp, 4
pop edi
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x18]
test edi, edi
setne bl
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4edc6e
mov eax, dword [esp + 0x18]
push eax
call fcn.0047fb60
add esp, 4
mov ecx, dword [esp + 0x14]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4edc88
mov eax, dword [esp + 0x14]
push eax
call fcn.0047fb60
add esp, 4
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004ecbf0
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004ea500
add esp, 8
mov ecx, eax
call fcn.004818a0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [esp + 0x20]
setne bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4edcd9
mov edx, dword [esp + 0x20]
push edx
call fcn.0047fb60
add esp, 4
mov eax, dword [esp + 0x14]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4edcf3
mov edx, dword [esp + 0x14]
push edx
call fcn.0047fb60
add esp, 4
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4edd0d
mov edx, dword [esp + 0xc]
push edx
call fcn.0047fb60
add esp, 4
pop esi
mov al, bl
pop ebx
add esp, 0x10
ret