Function at 0x10010390
Capabilities:
Delete directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1001e2ed
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
push edi
mov edi, dword [esp + 0x2cc]
push edi
call fcn.1000f530
add esp, 4
test al, al
je 0x100103d8
mov al, 1
pop edi
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
add esp, 0x2c4
ret
push ebx
push ebp
lea ecx, [esp + 0x60]
call fcn.1000e610
mov al, byte [esp + 0xf]
xor ebp, ebp
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d0], ebp
mov byte [esp + 0x14], al
call fcn.100036b0
push 0x10052ac0
call fcn.100125b7
add esp, 4
lea ecx, [esp + 0x10]
push eax
push 0x10052ac0
call fcn.10006190
lea ecx, [esp + 0x10]
mov byte [esp + 0x2cc], 1
push ecx
push edi
lea ecx, [esp + 0x68]
call fcn.1000e690
push 1
lea ecx, [esp + 0x14]
mov bl, al
mov byte [esp + 0x2d0], 0
call fcn.100036b0
test bl, bl
je 0x1001069f
mov dl, byte [edi]
push esi
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.100036b0
mov eax, dword [0x1001f2c8]
lea ecx, [esp + 0x24]
push eax
push ebp
push edi
call fcn.10004ba0
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x2d0], 2
lea esi, [eax - 1]
cmp eax, esi
ja 0x10010488
call fcn.10011fb7
lea ecx, [esp + 0x24]
call fcn.10009150
mov ecx, dword [esp + 0x28]
cmp word [ecx + esi*2], 0x5c
je 0x100104b8
push 0x10024354
call fcn.100125b7
add esp, 4
lea ecx, [esp + 0x24]
push eax
push 0x10024354
call fcn.10004ae0
lea edx, [esp + 0x44]
lea ecx, [esp + 0x64]
push edx
call fcn.1000e8b0
push 0x100242e8
mov byte [esp + 0x2d4], 3
call fcn.100125b7
add esp, 4
lea ecx, [esp + 0x44]
push eax
mov eax, dword [esp + 0x50]
push 0x100242e8
push eax
push ebp
call fcn.10006240
cmp eax, ebp
je 0x1001050a
push 0x100242ec
lea ecx, [esp + 0x48]
call fcn.10006120
test eax, eax
je 0x1001050a
xor bl, bl
jmp 0x1001050c
mov bl, 1
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x2d4], 2
call fcn.100036b0
test bl, bl
jne 0x10010667
lea ecx, [esp + 0x64]
call fcn.1000e8a0
test al, al
jne 0x10010667
mov cl, byte [esp + 0x24]
push ebp
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
call fcn.100036b0
mov edx, dword [0x1001f2c8]
lea eax, [esp + 0x24]
push edx
push ebp
push eax
lea ecx, [esp + 0x40]
call fcn.10004ba0
lea ecx, [esp + 0x54]
mov byte [esp + 0x2d0], 4
push ecx
lea ecx, [esp + 0x68]
call fcn.1000e8b0
mov edx, dword [0x1001f2c8]
lea ecx, [esp + 0x34]
push edx
push ebp
push eax
mov byte [esp + 0x2dc], 5
call fcn.100049f0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x2d4], 4
call fcn.100036b0
mov edi, dword [esp + 0x38]
cmp edi, ebp
jne 0x100105b0
mov edi, 0x1001f2c4
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.100036b0
push edi
call fcn.100125b7
add esp, 4
mov esi, eax
lea ecx, [esp + 0x14]
push 1
push esi
call fcn.10001f70
test al, al
je 0x100105f6
mov ecx, dword [esp + 0x18]
push esi
push edi
push ecx
call fcn.100018f0
add esp, 0xc
lea ecx, [esp + 0x14]
push esi
call fcn.10004e00
mov edx, dword [esp + 0x2dc]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x2d8], 6
call fcn.1000f060
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d0], 4
push 1
call fcn.100036b0
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x2d0], 2
cmp ecx, ebp
je 0x10010654
mov al, byte [ecx - 1]
test al, al
je 0x10010648
cmp al, 0xff
je 0x10010648
dec al
mov byte [ecx - 1], al
jmp 0x10010654
add ecx, 0xfffffffe
push ecx
call fcn.10011d80
add esp, 4
mov edi, dword [esp + 0x2d8]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
lea ecx, [esp + 0x64]
call fcn.1000e880
test al, al
jne 0x100104b8
mov ecx, dword [esp + 0x28]
pop esi
cmp ecx, ebp
je 0x1001069f
mov al, byte [ecx - 1]
test al, al
je 0x10010693
cmp al, 0xff
je 0x10010693
dec al
mov byte [ecx - 1], al
jmp 0x1001069f
add ecx, 0xfffffffe
push ecx
call fcn.10011d80
add esp, 4
mov eax, dword [edi + 4]
cmp eax, ebp
pop ebp
pop ebx
jne 0x100106ad
mov eax, 0x1001f2c4
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [esp + 0x58]
je 0x100106d9
call fcn.1000e630
mov al, 1
pop edi
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
add esp, 0x2c4
ret
call fcn.1000e630
mov ecx, dword [esp + 0x2bc]
xor al, al
pop edi
mov dword fs:[0], ecx
add esp, 0x2c4
ret