Function at 0x40b1d6
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x438af8]
push ebx
push esi
push edi
mov ecx, 0x438af8
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x80]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
add ecx, 4
call fcn.0042144d
add eax, 0x24
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401c33
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
mov dword [ebp - 0xc], esi
je 0x40b36f
mov eax, dword [edi + 0x84]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00401c33
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
call fcn.00411555
mov eax, dword [ebx + 0x14]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004026e5
lea eax, [ebp - 8]
call fcn.00411555
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0042cbac
mov eax, dword [eax]
pop ecx
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004026e5
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040147d
xor bl, bl
mov esi, edi
call fcn.0040b434
push 0x8a
lea ecx, [ebp - 0x14]
call fcn.00401ff7
pop ecx
push dword [ebp - 0x14]
push 2
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.0040b7c2
mov ecx, dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call fcn.004114f0
test al, al
pop ecx
pop ecx
mov byte [ebp - 1], al
jne 0x40b350
cmp byte [0x438cec], al
je 0x40b30b
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
push dword [0x438270]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004063dd
push eax
mov ebx, 0x438cbc
call fcn.00405df0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040147d
lea esi, [ebp - 8]
call fcn.004044e7
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 8]
push 0x5c
call fcn.004026aa
test eax, eax
pop ecx
jne 0x40b32e
or eax, 0xffffffff
jmp 0x40b331
sub eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
lea esi, [ebp - 8]
call fcn.00402629
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040147d
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040147d
cmp byte [ebp - 1], 0
je 0x40b398
mov esi, dword [ebp - 0xc]
push dword [edi + 0xf4]
push dword [ebp + 0xc]
call fcn.0040c544
mov ecx, dword [edi + 0x80]
mov ecx, dword [ecx + 0xc]
add ecx, 4
call fcn.0042144d
mov byte [eax + 0x68], 1
mov byte [ebp - 1], 1
jmp 0x40b405
inc dword [edi + 0x18c]
mov eax, dword [0x438af8]
mov ecx, 0x438af8
call dword [eax + 0xc]
add eax, 0x10
push 0x8b
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.00401ff7
pop ecx
lea edi, [ebp - 0x14]
call fcn.00401bc0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040147d
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push esi
push 2
push dword [eax + 0xf4]
push dword [ebp + 0xc]
call fcn.0040b7c2
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 1
lea eax, [esi - 0x10]
mov byte [ebp - 1], 0
call fcn.0040147d
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
cmp dword [esi - 0xc], 0
je 0x40b417
mov bl, 1
mov esi, edi
call fcn.0040b434
mov esi, dword [ebp - 0xc]
lea eax, [esi - 0x10]
call fcn.0040147d
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040147d
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc