Function at 0x1002ba90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e2be2
mov eax, dword fs:[0]
push eax
sub esp, 0x3a4
mov eax, dword [0x1025e344]
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, ecx
mov dword [ebp - 0x2d8], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2dc], esi
mov dword [ebp - 0x2d0], 0
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1002c1f7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c8]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x1002bb23
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x2c8]
call fcn.10006ab0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2f0]
push eax
mov ecx, esi
call fcn.1002a370
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2e4], ecx
cmp eax, ecx
je 0x1002c16d
nop dword [eax]
mov esi, dword [eax]
mov ecx, ebx
call fcn.10048df0
test eax, eax
jne 0x1002c156
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
mov edi, eax
cmp dword [eax + 0x14], 8
jb 0x1002bb83
mov edi, dword [eax]
mov ebx, dword [eax + 0x10]
mov ecx, str.C1G3R2
cmp ebx, 6
mov edx, ebx
mov eax, 6
cmova edx, eax
test edx, edx
je 0x1002bbb1
sub edi, ecx
nop
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x1002bbc5
add ecx, 2
sub edx, 1
jne 0x1002bba0
cmp ebx, 6
jb 0x1002bbc5
ja 0x1002bbc5
push str.SeRestorePrivilege
call fcn.10081930
add esp, 4
cmp dword [esi + 0x24], 1
jne 0x1002c07a
cmp dword [esi + 0x40], 0
jne 0x1002c07a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov ebx, dword [ebp - 0x2d8]
mov ecx, ebx
call fcn.10048de0
cmp eax, 4
jne 0x1002bc30
cmp dword [esi + 0x3c], 8
lea ecx, [esi + 0x28]
push dword [esi + 0x4c]
push dword [esi + 0x48]
jb 0x1002bc02
mov ecx, dword [ecx]
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x2cc], esp
push 0xfde9
push ecx
push eax
call fcn.100d15d0
add esp, 0xc
mov byte [ebp - 4], 3
call fcn.10004930
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.100272d0
mov dword [esi + 0x40], 1
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 0xc], 0
jne 0x1002bcd2
mov eax, dword [ebp - 0x2dc]
cmp dword [eax + 0x28], 0
jne 0x1002bcd2
push 0x208
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.101a08b0
lea eax, [esi + 0x28]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x1002bc74
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c8]
call fcn.10007a40
push dword [ebp - 0x2c8]
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x27c]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1002bcb0
sub eax, edx
lea ecx, [ebp - 0x2c8]
sar eax, 1
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.10006ab0
push 0
call fcn.1001df00
mov ecx, eax
call fcn.100aeee0
test eax, eax
jne 0x1002c0a0
call fcn.1001df00
cmp dword [eax + 0xc], 0
jne 0x1002c0a0
lea ecx, [ebp - 0x318]
call fcn.1002a0a0
mov byte [ebp - 4], 8
mov eax, dword [ebx + 4]
mov dword [ebp - 0x310], 4
mov dword [ebp - 0x30c], 8
mov dword [ebp - 0x304], 2
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
add eax, 0x11c
cmp dword [eax + 0x14], 8
jb 0x1002bd39
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.10007a40
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0x3c]
add eax, 0xdc
cmp dword [eax + 0x14], 8
jb 0x1002bd5a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2f8]
call fcn.10007a40
cmp dword [esi + 0x3c], 8
lea edi, [esi + 0x28]
mov eax, edi
jb 0x1002bd73
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x308]
call fcn.10007a40
mov eax, dword [esi + 0x48]
sub esp, 0x28
mov dword [ebp - 0x318], eax
mov ecx, esp
mov eax, dword [esi + 0x4c]
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x318]
mov dword [ebp - 0x2cc], esp
push eax
call fcn.1002b530
mov byte [ebp - 4], 9
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov byte [ebp - 4], 8
call dword [eax]
call fcn.100b5f40
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002c06b
push 0x80
mov dword [ebp - 0x284], eax
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x280], eax
push str.d:jenkins.jenkinsworkspacemaster_lucleanenginecleanenginecleanengine_srclua_enginecleanclean_fileclean_file_direct.cc
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], 0xf
mov byte [ebp - 0x294], al
call fcn.10014280
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c4]
push 3
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0
push 0x10200ec8
mov dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2b0], 0xf
mov byte [ebp - 0x2c4], 0
call fcn.10014280
mov byte [ebp - 4], 0xb
call fcn.100b5f40
push 1
push 2
lea ecx, [ebp - 0x3b0]
mov dword [ebp - 0x2cc], eax
call fcn.10017e30
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x294]
push 0xffffffffffffffff
push 0x10200560
call fcn.100156b0
push 0xffffffffffffffff
push 0x10200eb0
lea ecx, [ebp - 0x294]
mov ebx, eax
call fcn.100156b0
push 0x64
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.101a08b0
mov ecx, dword [ebp - 0x2e0]
add esp, 0xc
cmp ecx, 0xffffffff
je 0x1002bf8c
lea eax, [ecx - 1]
cmp ebx, eax
jae 0x1002bf8c
lea edx, [ebx + 1]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0xf
mov byte [ebp - 0x2ac], 0
cmp eax, edx
jb 0x1002c201
sub ecx, ebx
sub eax, edx
dec ecx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x280], 0x10
lea eax, [ebp - 0x294]
cmovae eax, dword [ebp - 0x294]
push ecx
add eax, edx
lea ecx, [ebp - 0x2ac]
push eax
call fcn.10014280
mov ebx, dword [ebp - 0x2d0]
lea eax, [ebp - 0x2ac]
or ebx, 2
mov dword [ebp - 0x2d0], ebx
cmp dword [ebp - 0x298], 0x10
cmovae eax, dword [ebp - 0x2ac]
push eax
push 0x63
lea eax, [ebp - 0x74]
push str.__4d___s_
push eax
call fcn.10010300
and ebx, 0xfffffffd
add esp, 0x10
mov dword [ebp - 0x2d0], ebx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2ac]
call fcn.10007910
jmp 0x1002bf9f
push 0x63
lea eax, [ebp - 0x74]
push str.__4d_
push eax
call fcn.10010300
add esp, 0xc
cmp dword [ebp - 0x2b0], 0x10
lea eax, [ebp - 0x2c4]
cmovae eax, dword [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x3b0]
push eax
call fcn.10012120
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x3b0]
push eax
call fcn.10012120
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x3b0]
push str.clean_path:
push eax
call fcn.10012120
add esp, 0x18
cmp dword [edi + 0x14], 8
jb 0x1002bff0
mov edi, dword [edi]
test edi, edi
mov eax, 0x10200ea0
cmovne eax, edi
push eax
lea eax, [ebp - 0x3b0]
push eax
call fcn.1000fd60
lea eax, [ebp - 0x3b0]
push str._size:
push eax
call fcn.10012120
add esp, 0x10
lea ecx, [ebp - 0x3b0]
push dword [esi + 0x4c]
push dword [esi + 0x48]
call fcn.1002b610
mov ecx, dword [ebp - 0x2cc]
lea edx, [ebp - 0x3b0]
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x3b0]
call fcn.10012230
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c4]
call fcn.10007910
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x294]
call fcn.10007910
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.1002a250
mov eax, dword [ebp - 0x2d4]
add eax, 4
mov dword [ebp - 0x2d4], eax
cmp eax, dword [ebp - 0x2e4]
je 0x1002c167
mov ebx, dword [ebp - 0x2d8]
jmp 0x1002bb60
push 0
push ecx
mov esi, esp
mov dword [ebp - 0x2e4], esp
mov dword [ebp - 0x2cc], esi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1002c206
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov ecx, esi
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x1002c0ec
push 0
push 0x101fe8a0
mov ecx, esi
call fcn.10006ab0
mov byte [ebp - 4], 5
mov ecx, ebx
call fcn.10048de0
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x2cc], esp
mov dword [ebp - 0x2e0], esi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1002c210
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
mov ecx, esi
push str.DeleteFailException
call fcn.10004060
test al, al
jne 0x1002c142
push 0x13
push str.DeleteFailException
mov ecx, esi
call fcn.10006ab0
mov byte [ebp - 4], 7
call fcn.10004930
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.10025fb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f0]
call fcn.10019380
jmp 0x1002c1b4
mov esi, dword [ebp - 0x2dc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2f0]
call fcn.10019380
cmp dword [esi + 0x24], 0
je 0x1002c1a7
mov eax, dword [ebp - 0x2c8]
cmp dword [eax - 0xc], 0
je 0x1002c1a7
push eax
call fcn.1007f2e0
add esp, 4
test eax, eax
je 0x1002c1a7
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push str.SeRestorePrivilege
call fcn.10082800
add esp, 4
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002c1d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100d02f2
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10004040
call fcn.10013f00
push 0x80004005
call fcn.10004040
push 0x80004005
call fcn.10004040
int3