Function at 0x40ebc0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x512590
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x5c], 0
call fcn.004c294f
push 0x529b37
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.0041aa20
push 0x52aec8
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x68], 2
call fcn.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 3
call fcn.00404e60
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edi, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ec5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x40]
call fcn.004c29db
test eax, eax
je 0x40ee4a
mov bl, 4
lea ecx, [esp + 0x38]
call fcn.004c26e0
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
call fcn.004c2916
test eax, eax
jne 0x40ee3f
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
call fcn.004c2c0a
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x3c]
call edx
test eax, eax
push 0x529b37
je 0x40ed95
lea ecx, [esp + 0x1c]
call fcn.0041aa20
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x68], 5
call fcn.0041ac70
add esp, 0xc
push 0x52aec4
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x68], 6
call fcn.00404c80
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x60], 7
call fcn.00404e60
mov byte [esp + 0x5c], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ed59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00405250
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.0040ebc0
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40ee0f
lea ecx, [esp + 0x20]
call fcn.0041aa20
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x68], 8
call fcn.0041ac70
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x60], 9
call fcn.00404e60
mov byte [esp + 0x5c], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eded
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ee1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x5c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x30], 0
jne 0x40ec79
lea ecx, [esp + 0x38]
call fcn.004c2610
mov esi, dword [esp + 0x64]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [esp + 0x5c], 1
test eax, eax
mov eax, dword [esp + 0x14]
mov edx, edi
jne 0x40eeb5
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ee86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.004c2973
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40eeb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x40eefb
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40eece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0
call fcn.004c2973
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40eef9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4