Function at 0x1004ee01
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x88]
mov dword [ebp - 0x48], eax
xor eax, eax
or dword [ebp - 0x3c], 0xffffffff
and dword [ebp - 0x60], 0
stosd dword es:[edi], eax
push 0x34
push 0
mov dword [ebp - 0x58], edx
stosd dword es:[edi], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x5c], 1
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x74]
mov dword [ebp - 0x4c], eax
add esp, 0xc
mov dword [ebp - 0x50], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x48]
test byte [edi + 0x10], 0x10
mov edi, dword [ebp - 0x40]
je 0x1004ef0c
push ebx
mov edx, esi
mov ecx, edi
call fcn.10035476
test eax, eax
jne 0x1004ef0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1004ef09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1004ef09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004eeb9
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004eece
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004eed3
movzx esi, si
or esi, edi
jmp 0x1004eed3
mov esi, 0x80004005
mov edi, 0x1000aa60
test esi, esi
jns 0x1004eee9
push esi
push 0x554
mov ecx, edi
call fcn.1003a254
mov edx, dword [ebp - 0x40]
xor ecx, ecx
push 0x555
push edi
mov edi, dword [ebp - 0x44]
inc ecx
push esi
push 0x1000aa88
push edi
call fcn.1002fae3
jmp 0x1004f23e
and dword [ebp - 0x5c], ebx
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x70], esi
push eax
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x74]
push 0
push 4
mov ecx, edi
mov eax, dword [eax + 0x10]
and eax, 0x10
or eax, 0x48000000
push eax
call fcn.10022c26
test eax, eax
jne 0x1004ef9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004ef4c
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004ef61
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004ef66
movzx esi, si
or esi, edi
jmp 0x1004ef66
mov esi, 0x80004005
mov edi, 0x1000aa60
test esi, esi
jns 0x1004ef7c
push esi
push 0x566
mov ecx, edi
call fcn.1003a254
push 0x567
push edi
push esi
push 0x1000417c
mov edi, dword [ebp - 0x44]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
inc ecx
push edi
call fcn.1002fae3
mov eax, dword [ebp - 0x3c]
jmp 0x1004f1ed
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1004f006
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004efc8
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004efdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004efe2
movzx esi, si
or esi, edi
jmp 0x1004efe2
mov esi, 0x80004005
mov edi, 0x1000aa60
test esi, esi
jns 0x1004eff8
push esi
push 0x56f
mov ecx, edi
call fcn.1003a254
push 0x570
push edi
push esi
push 0x1000aab8
jmp 0x1004ef88
mov eax, dword [ebp - 0x14]
add eax, 8
mov word [ebp - 0x54], ax
movzx eax, ax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1004f080
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004f03f
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004f054
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004f059
movzx esi, si
or esi, edi
jmp 0x1004f059
mov esi, 0x80004005
mov edi, 0x1000aa60
test esi, esi
jns 0x1004f06f
push esi
push 0x57a
mov ecx, edi
call fcn.1003a254
push 0x57b
push edi
push esi
push 0x100041e4
jmp 0x1004ef88
mov ecx, dword [ebp - 0x48]
lea edx, [ebx + 8]
push 0
mov eax, dword [ecx + 0x58]
mov dword [ebx], eax
mov ax, word [ebp - 0x14]
mov word [ebx + 4], ax
mov ax, word [ecx + 0x5c]
lea ecx, [ebp - 0x88]
mov word [ebx + 6], ax
movzx eax, word [ebx + 4]
push ecx
push eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
call fcn.10028fbd
test eax, eax
jne 0x1004f10e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004f0cd
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004f0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004f0e7
movzx esi, si
or esi, edi
jmp 0x1004f0e7
mov esi, 0x80004005
mov edi, 0x1000aa60
test esi, esi
jns 0x1004f0fd
push esi
push 0x58c
mov ecx, edi
call fcn.1003a254
push 0x58d
push edi
push esi
push 0x1000aad8
jmp 0x1004ef88
lea eax, [ebp - 0x54]
xor edx, edx
push eax
lea eax, [ebp - 0x50]
mov ecx, edi
push eax
push dword [ebp - 0x54]
push ebx
push esi
push dword [ebp - 0x48]
call fcn.1002d13e
mov esi, eax
test esi, esi
jns 0x1004f14b
push esi
push 0x593
mov ecx, 0x1000aa60
call fcn.1003a254
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x1004f1ea
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jne 0x1004f15c
mov ecx, ebx
xor ebx, ebx
mov dword [ebp - 0x4c], ecx
push 0
lea eax, [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x54]
push 0
push 0
push eax
push ecx
push 0x900a4
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1004f1d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004f194
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004f1a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004f1ae
movzx esi, si
or esi, edi
jmp 0x1004f1ae
mov esi, 0x80004005
mov edi, 0x1000aa60
test esi, esi
jns 0x1004f1c4
push esi
push 0x5a5
mov ecx, edi
call fcn.1003a254
push 0x5a6
push edi
push esi
push 0x1000ab30
jmp 0x1004ef88
mov esi, dword [ebp - 0x58]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
xor esi, esi
and dword [ebp - 0x5c], esi
mov edi, dword [ebp - 0x44]
test esi, esi
jns 0x1004f1fd
cmp eax, 0xffffffff
je 0x1004f1fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48]
test byte [eax + 0x10], 0x10
je 0x1004f213
cmp dword [ebp - 0x5c], 0
je 0x1004f213
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test ebx, ebx
je 0x1004f227
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x1004f23e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 8