Function at 0x100166e0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0xc
call fcn.10031690
mov esi, eax
add esp, 4
test esi, esi
je 0x1001671c
push str.SunJavaDeployment
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x10016a46
jmp 0x1001671e
xor esi, esi
mov dword [esp + 0x1c], esi
test esi, esi
je 0x10016a46
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1001673a
lock inc dword [eax + 8]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
call fcn.10003700
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
jne 0x1001678c
mov eax, dword [esi]
test eax, eax
je 0x1001676a
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10016781
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10016798
mov eax, dword [esi]
jmp 0x1001679a
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x100169ba
test esi, esi
je 0x100167b1
mov eax, dword [esi]
jmp 0x100167b3
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
push 0xc
call fcn.10031690
mov edi, eax
add esp, 4
test edi, edi
je 0x100167ef
push str.SunJava
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x10016a46
jmp 0x100167f1
xor edi, edi
mov dword [esp + 0x1c], edi
test edi, edi
je 0x10016a46
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1001680d
lock inc dword [eax + 8]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.10003700
lea ecx, [esp + 0x10]
call fcn.10002020
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], esi
test esi, esi
je 0x10016870
lea ecx, [esi + 8]
lock inc dword [ecx]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x10016870
mov eax, dword [esi]
test eax, eax
je 0x1001684e
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10016865
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x100168ab
mov eax, dword [edi]
test eax, eax
je 0x10016889
push eax
call ebp
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x100168a0
push eax
call fcn.1003b898
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.10031690
add esp, 8
test esi, esi
je 0x100168b3
mov eax, dword [esi]
jmp 0x100168b5
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
push 0xc
call fcn.10031690
mov edi, eax
add esp, 4
test edi, edi
je 0x100168f1
push str.Sun
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x10016a46
jmp 0x100168f3
xor edi, edi
mov dword [esp + 0x1c], edi
test edi, edi
je 0x10016a46
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1001690f
lock inc dword [eax + 8]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.10003700
lea ecx, [esp + 0x10]
call fcn.10002020
mov esi, dword [esp + 0x18]
test esi, esi
je 0x1001696e
lea ecx, [esi + 8]
lock inc dword [ecx]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x1001696e
mov eax, dword [esi]
test eax, eax
je 0x1001694c
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10016963
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x100169a9
mov eax, dword [edi]
test eax, eax
je 0x10016987
push eax
call ebp
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x1001699e
push eax
call fcn.1003b898
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.10031690
add esp, 8
test esi, esi
je 0x100169b1
mov eax, dword [esi]
jmp 0x100169b3
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test esi, esi
je 0x100169f9
mov eax, ebx
lock xadd dword [esi + 8], eax
dec eax
jne 0x100169f9
mov eax, dword [esi]
test eax, eax
je 0x100169d7
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100169ee
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10016a3e
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10016a3e
test esi, esi
je 0x10016a3e
mov eax, dword [esi]
test eax, eax
je 0x10016a1c
push eax
call ebp
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10016a33
push eax
call fcn.1003b898
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.10031690
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x8007000e
call fcn.10031690
int3