Function at 0x40f2c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438211
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
mov eax, dword [0x449320]
push ebx
push esi
mov dword [esp + 0x14], ecx
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x45c], eax
call fcn.004132ad
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 str._s.
push edx
mov dword [esp + 0x478], ebx
call fcn.0041c5fc
add esp, 0xc
push ebx
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x28]
call fcn.00413340
cmp eax, ebx
je 0x40f4ff
lea ecx, [esp + 0x20]
call fcn.00413146
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00413274
test eax, eax
jne 0x40f4f5
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00413568
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 0x40f3b5
push 0x104
lea ecx, [esp + 0x14]
call fcn.00401350
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 0x40f3c0
cmp edx, ebx
jne 0x40f3d2
xor eax, eax
jmp 0x40f3e6
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40f3d7
sub eax, esi
js 0x40f550
cmp eax, dword [edx - 8]
jg 0x40f550
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 0x40f48a
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.0041c5fc
add esp, 0x10
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x18]
call fcn.004057f0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x470], 2
call fcn.0040f2c0
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 0x40f4d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40f4d0
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.0041c5fc
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 0x40f4f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [esp + 0x1c], ebx
jne 0x40f355
lea ecx, [esp + 0x20]
call fcn.00413076
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.004132d1
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x45c]
mov eax, 1
call fcn.0041c22b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401000
int3