Function at 0x10082710
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e8b4b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2a8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 3
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x102285e8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.10003c10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.100636d0
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 8
jb 0x100827b4
push dword [ebp - 0x40]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2a0]
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x30], 0
call fcn.101acd32
add esp, 8
mov dword [ebp - 0x2a4], eax
test eax, eax
jns 0x100827f4
xor esi, esi
jmp 0x100829bd
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ebx, [ebx]
mov ecx, 0x102285f0
lea eax, [ebp - 0x27c]
jmp 0x10082810
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10082836
test dx, dx
je 0x10082832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10082836
add eax, 4
add ecx, 4
test dx, dx
jne 0x10082810
xor eax, eax
jmp 0x1008283b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10082963
mov ecx, 0x102285f4
lea eax, [ebp - 0x27c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10082876
test dx, dx
je 0x10082872
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10082876
add eax, 4
add ecx, 4
test dx, dx
jne 0x10082850
xor eax, eax
jmp 0x1008287b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10082963
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [ebp - 0x27c], ax
jne 0x100828a4
xor ecx, ecx
jmp 0x100828bf
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100828b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x58]
call fcn.10003c10
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.100636d0
add esp, 4
mov byte [ebp - 4], 6
cmp dword [ebp - 0x44], 8
jb 0x100828f9
push dword [ebp - 0x58]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
test byte [ebp - 0x2a0], 0x10
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jne 0x10082944
lea eax, [ebp - 0x28]
test ebx, ebx
je 0x10082933
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1008294e
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call edi
jmp 0x1008294e
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.10082710
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 8
jb 0x10082963
push dword [ebp - 0x28]
call fcn.101a02f0
add esp, 4
lea eax, [ebp - 0x2a0]
push eax
push dword [ebp - 0x2a4]
call fcn.101ace59
add esp, 8
test eax, eax
je 0x10082800
push dword [ebp - 0x2a4]
call fcn.101ad065
add esp, 4
test ebx, ebx
je 0x100829a9
cmp dword [esi + 0x14], 8
jb 0x1008299c
mov eax, dword [esi]
jmp 0x1008299e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x100829b8
cmp dword [esi + 0x14], 8
jb 0x100829b1
mov esi, dword [esi]
push 4
push 0
push esi
call edi
mov esi, 1
cmp dword [ebp - 0x5c], 8
jb 0x100829ce
push dword [ebp - 0x70]
call fcn.101a02f0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret