Function at 0x40655c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41b208]
push ebx
push esi
push edi
mov ecx, 0x41b208
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x78]
mov ecx, dword [eax + 0x18]
mov eax, dword [ebx + 0x10]
call fcn.0040fe9a
add eax, 0x10
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040252d
mov edi, eax
add edi, 0x10
cmp dword [edi - 0xc], 0
mov dword [ebp - 0xc], edi
je 0x4066cb
mov eax, dword [esi + 0x7c]
mov eax, dword [eax]
sub eax, 0x10
call fcn.0040252d
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [eax - 0xc]
lea esi, [eax - 1]
lea edi, [ebp - 8]
call fcn.004027e2
cmp al, 0x5c
je 0x4065d9
push 0x5c
mov eax, edi
call fcn.00404fa7
mov eax, dword [ebx + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004028d2
push 0x418598
lea esi, [ebp - 0x10]
call fcn.004029c8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
mov eax, esi
call fcn.00403891
add esp, 0xc
lea edi, [ebp - 4]
call fcn.00402393
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402515
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402515
mov esi, dword [ebp + 8]
xor bl, bl
call fcn.0040679b
push 0x8a
lea ecx, [ebp - 0x14]
call fcn.00403f48
mov edi, dword [ebp - 0x14]
pop ecx
push edi
push 2
push dword [esi + 0xe4]
push dword [ebp + 0xc]
call fcn.00406a62
lea eax, [ebp - 0xc]
push 0
push eax
lea ecx, [ebp - 4]
call fcn.004040e9
mov bl, al
test bl, bl
pop ecx
pop ecx
jne 0x4066ae
lea esi, [ebp - 4]
call fcn.0040233c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
push 0x5c
call fcn.00404db2
test eax, eax
pop ecx
jne 0x40668c
or eax, 0xffffffff
jmp 0x40668f
sub eax, dword [ebp - 4]
lea ecx, [ebp - 0x14]
push ecx
lea esi, [ebp - 4]
call fcn.004027fd
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402515
lea eax, [edi - 0x10]
call fcn.00402515
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00402515
test bl, bl
mov esi, dword [ebp + 8]
je 0x406704
mov edi, dword [ebp - 0xc]
push dword [esi + 0xe4]
push dword [ebp + 0xc]
call fcn.0040799f
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x78]
lea ecx, [eax + 0xc]
mov eax, dword [ebp + 0xc]
call fcn.00404d14
push 6
pop ebx
mov dword [eax], ebx
mov esi, dword [esi + 0x78]
mov eax, dword [ebp + 0xc]
mov ecx, esi
call fcn.00404d14
mov dword [eax], ebx
mov byte [ebp + 0xf], 1
jmp 0x40676b
inc dword [esi + 0x15c]
mov eax, dword [0x41b208]
mov ecx, 0x41b208
call dword [eax + 0xc]
add eax, 0x10
push 0x8b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.00403f48
pop ecx
lea edi, [ebp - 0x10]
call fcn.00402393
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402515
mov edi, dword [ebp - 0x10]
push edi
push 2
push dword [esi + 0xe4]
push dword [ebp + 0xc]
call fcn.00406a62
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 1
lea eax, [edi - 0x10]
mov byte [ebp + 0xf], 0
call fcn.00402515
mov edi, dword [ebp - 0xc]
cmp dword [edi - 0xc], 0
je 0x40677e
mov esi, dword [ebp + 8]
mov bl, 1
call fcn.0040679b
mov edi, dword [ebp - 0xc]
lea eax, [edi - 0x10]
call fcn.00402515
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00402515
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
leave
ret 0xc