Function at 0x473088
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x30
mov eax, 0x68d6b9
call fcn.0056e23b
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x30], esi
cmp dword [edi + 0x80], esi
jne 0x473141
mov esi, dword [ebp + 8]
test esi, esi
je 0x473209
cmp dword [edi + 4], 1
push 8
pop ebx
jne 0x473110
lea ecx, [ebp - 0x2c]
call fcn.004173bc
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], ebx
jb 0x4730d1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x2c]
push str._sReadme.txt
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x473100
mov dword [ebp - 0x30], 1
dec esi
and dword [edi + 4], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
test esi, esi
je 0x473209
cmp dword [edi], 1
jne 0x473209
lea eax, [edi + 0xc]
cmp dword [eax + 0x14], ebx
jb 0x47312b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x473139
inc dword [ebp - 0x30]
and dword [edi], 0
jmp 0x473209
mov eax, dword [ebp + 8]
push 8
pop ebx
mov dword [ebp - 0x34], eax
test eax, eax
je 0x473209
mov eax, dword [edi + 0x80]
cmp dword [eax + 0x28], 0
je 0x473222
mov esi, dword [eax + 0x24]
mov esi, dword [esi]
jmp 0x4731ed
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov dword [ebp - 4], 1
lea eax, [esi + 0xc]
cmp dword [eax + 0x14], ebx
jb 0x473185
mov eax, dword [eax]
lea ecx, [edi + 0x28]
cmp dword [ecx + 0x14], ebx
jb 0x47318f
mov ecx, dword [ecx]
push eax
push ecx
lea eax, [ebp - 0x2c]
push 0x6c2f20
push eax
call fcn.0041ccda
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], ebx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4731c0
inc dword [ebp - 0x30]
sub dword [ebp - 0x34], 1
je 0x473214
mov ecx, dword [edi + 0x80]
lea eax, [ebp - 0x3c]
push esi
push eax
add ecx, 0x24
call fcn.0043ae6c
mov esi, dword [eax]
dec dword [edi + 0x88]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, dword [edi + 0x80]
cmp esi, dword [eax + 0x24]
jne 0x47316c
mov esi, dword [ebp - 0x30]
cmp dword [edi + 0x80], 0
mov eax, dword [ebp - 0x34]
jne 0x47314a
mov eax, dword [ebp - 0x30]
call fcn.0056e1e5
ret 8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
jmp 0x4731f6
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x38], eax
lea eax, [edi + 0x28]
cmp dword [eax + 0x14], ebx
jb 0x473232
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x473244
inc esi
dec dword [ebp - 0x34]
mov dword [ebp - 0x30], esi
mov eax, dword [edi + 0x80]
add eax, 4
cmp dword [eax + 0x14], ebx
jb 0x473254
mov eax, dword [eax]
lea ecx, [edi + 0x24]
push eax
call fcn.004295ab
push 0x6c2f2c
lea ecx, [edi + 0x24]
call fcn.004295ab
push dword [edi + 0x80]
mov ecx, dword [ebp - 0x38]
call fcn.00473326
mov eax, dword [ebp - 0x38]
lea ecx, [edi + 0x24]
cmp dword [eax + 0x20], 0
je 0x4732ba
mov eax, dword [eax + 0x1c]
push 0x6c2f30
mov eax, dword [eax + 4]
add eax, ebx
mov dword [edi + 0x80], eax
call fcn.00419c79
mov eax, dword [edi + 0x80]
add eax, 4
cmp dword [eax + 0x14], ebx
jb 0x4732ac
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x24]
call fcn.00419c79
jmp 0x4731f9
and dword [edi + 0x80], 0
push 0x6c2f34
call fcn.004179fb
jmp 0x4731f9