Function at 0x40cd70
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x435b91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov eax, dword [0x4472e0]
push ebx
push esi
mov dword [esp + 0x14], ecx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], eax
call fcn.00411b68
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x248], bl
mov ecx, 0x40
lea edi, [esp + 0x249]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x24c]
push 0x43a234
push edx
mov dword [esp + 0x478], ebx
call fcn.0041a23c
add esp, 0xc
push ebx
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x28]
call fcn.00411bfb
cmp eax, ebx
je 0x40cfaf
lea ecx, [esp + 0x20]
call fcn.00411a5f
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00411b2f
test eax, eax
jne 0x40cfa5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00411e23
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x46c], 1
jge 0x40ce65
push 0x104
lea ecx, [esp + 0x14]
call fcn.00401320
mov edx, dword [esp + 0x10]
lea esi, [esp + 0x350]
mov eax, edx
sub esi, edx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
cmp cl, bl
jne 0x40ce70
cmp edx, ebx
jne 0x40ce82
xor eax, eax
jmp 0x40ce96
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ce87
sub eax, esi
js 0x40d000
cmp eax, dword [edx - 8]
jg 0x40d000
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], bl
mov eax, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x24]
call dword [eax + 0x38]
test eax, eax
mov ecx, 0x40
je 0x40cf3a
mov edx, dword [ebp + 8]
xor eax, eax
mov byte [esp + 0x38], bl
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x350]
push ecx
stosb byte es:[edi], al
mov eax, dword [edx]
push eax
lea ecx, [esp + 0x40]
push str._s_s
push ecx
call fcn.0041a23c
add esp, 0x10
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.00404850
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x470], 2
call fcn.0040cd70
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x46c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40cf80
xor eax, eax
mov byte [esp + 0x140], bl
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x350]
push eax
push edx
lea eax, [esp + 0x148]
push str._s_s
push eax
call fcn.0041a23c
add esp, 0x10
lea ecx, [esp + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x46c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cfa5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x1c], ebx
jne 0x40ce05
lea ecx, [esp + 0x20]
call fcn.0041198f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x46c], 0xffffffff
call fcn.00411b8c
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x45c]
mov eax, 1
call fcn.00419e6b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401010
int3