Function at 0x4705b8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47085d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
mov edx, 0x470874
mov eax, dword [0x4776b8]
call fcn.00419278
mov eax, dword [ebp - 0x14]
call fcn.00470414
call fcn.004704e8
mov esi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jne 0x470638
mov dl, 1
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 4]
jmp 0x47082a
lea ecx, [ebp - 0x18]
mov edx, 0x470874
mov eax, esi
call fcn.00419278
mov eax, dword [ebp - 0x18]
call fcn.00470414
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x47074b
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 5
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404f28
mov eax, dword [ebp - 0x1c]
mov edx, 0x47088c
call fcn.00404e14
jne 0x470741
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 4]
mov ecx, 5
mov edx, 1
call fcn.00404f68
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 4]
call fcn.004097ac
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.00408a4c
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x11c]
mov ecx, 0xff
call fcn.00404ca4
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0xc]
mov cl, 7
call fcn.00403414
lea eax, [ebp - 0xc]
mov edx, 0x470894
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004034b4
je 0x470741
lea eax, [ebp - 0xc]
mov edx, 0x47089c
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004034b4
je 0x470741
lea eax, [ebp - 0xc]
mov edx, 0x4708a4
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004034b4
je 0x470741
mov eax, dword [ebp - 4]
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_DeleteFileA
dec ebx
cmp ebx, 0xffffffff
jne 0x470662
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x4707c2
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x128]
push eax
mov ecx, 4
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404f28
mov eax, dword [ebp - 0x128]
mov edx, 0x4708b4
call fcn.00404e14
jne 0x4707b3
lea eax, [ebp - 4]
mov ecx, 4
mov edx, 1
call fcn.00404f68
mov eax, dword [ebp - 4]
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
jmp 0x4707bc
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x48]
dec ebx
cmp ebx, 0xffffffff
jne 0x47075a
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x470821
inc eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x12c]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x12c]
mov ecx, 0x3fff
mov edx, 5
call fcn.00404f28
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 4]
call fcn.00409720
mov eax, dword [ebp - 0x130]
call fcn.00404ec8
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
inc ebx
dec dword [ebp - 0x10]
jne 0x4707d4
mov dl, 1
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470864
lea eax, [ebp - 0x130]
mov edx, 5
call fcn.00404a2c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404a2c
lea eax, [ebp - 4]
call fcn.00404a08
ret