Function at 0x40d780
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x448280
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov dword [esp + 0x4c], 0
mov esi, dword [esp + 0x54]
cmp dword [esi - 0xc], 0
je 0x40d9c2
push 0x450da0
lea ecx, [esp + 0x1c]
call fcn.0040b810
push 0x450da0
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 1
call fcn.0040b810
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call fcn.0041c30b
push 0
mov bl, 3
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], bl
call fcn.0041c399
test eax, eax
jne 0x40d82e
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call fcn.0041c331
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40d991
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x28]
call fcn.0041c020
lea ecx, [esp + 0x28]
mov ebp, eax
call fcn.0041c2ce
cmp eax, 1
je 0x40d90d
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x2c]
call eax
test eax, eax
je 0x40d8da
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041c5b0
mov byte [esp + 0x4c], 4
mov edx, dword [eax]
push edx
lea eax, [esp + 0x1c]
push str._s.
push eax
call fcn.00402790
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d8b0
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 + 0x28], esp
mov esi, esp
push eax
call fcn.00402290
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040d780
mov esi, dword [esp + 0x58]
add esp, 4
jmp 0x40d90d
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041c5b0
mov eax, dword [eax]
push eax
call edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d90d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
jne 0x40d834
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0041c362
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 5
call fcn.00402100
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x28]
call fcn.0041bf50
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 2
call fcn.0041c331
mov byte [esp + 0x4c], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d99d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x4c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d9e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret