Function at 0x10031880
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f66e
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x101e40b0]
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
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
push ecx
lea ecx, [ebp - 0x40]
movlpd qword [ebp - 0xb0], xmm0
call fcn.10005590
mov dword [ebp - 4], 0
mov edx, 0x10
lea ecx, [ebp - 0x40]
call fcn.1003cf50
lea ecx, [ebp - 0x98]
call fcn.100407d0
mov byte [ebp - 4], 1
push 4
mov dword [ebp - 0xa0], 0
call fcn.10177d89
add esp, 4
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 3
lea edx, [ebp - 0x40]
push 0x101b2ff4
lea ecx, [ebp - 0x58]
call fcn.10008c60
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x98]
push ecx
push eax
lea ecx, [ebp - 0xa0]
call fcn.10040bb0
mov bl, al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10005660
mov esi, dword [ebp - 0xa0]
test bl, bl
je 0x10031bc8
mov ecx, dword [ebp - 0x78]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x1003197e
mov al, 1
jmp 0x10031980
xor al, al
test al, al
je 0x100319c8
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x100319c8
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x70]
mov ebx, dword [ebp - 0x70]
cmp edi, 8
cmovae eax, ebx
cmp word [eax], 0x2e
jne 0x100319c8
cmp edx, 1
je 0x100319ba
cmp edi, 8
lea eax, [ebp - 0x70]
cmovae eax, ebx
cmp word [eax + 2], 0x2e
jne 0x100319c8
cmp edx, 2
jne 0x100319c8
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
jmp 0x10031a1e
or ecx, 0
je 0x100319d1
mov al, 1
jmp 0x100319d3
xor al, al
test al, al
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x58]
push eax
je 0x100319f6
call fcn.10014340
add esp, 4
mov byte [ebp - 4], 5
mov ecx, eax
call fcn.10031880
jmp 0x10031a0e
call fcn.10014340
add esp, 4
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.100471d0
movzx eax, al
cdq
mov edi, edx
mov ebx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10005660
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.100408d0
test al, al
je 0x10031bd4
mov ecx, dword [ebp - 0x78]
and ecx, 0x10
mov eax, ecx
or eax, 0
je 0x10031a45
mov al, 1
jmp 0x10031a47
xor al, al
test al, al
je 0x10031a87
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x10031a87
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp word [eax], 0x2e
jne 0x10031a87
cmp edx, 1
je 0x10031bb0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
cmp word [eax + 2], 0x2e
jne 0x10031a87
cmp edx, 2
je 0x10031bb0
or ecx, 0
je 0x10031a90
mov al, 1
jmp 0x10031a92
xor al, al
test al, al
je 0x10031b23
mov byte [ebp - 4], 7
xor eax, eax
or dword [ebp - 0x9c], 1
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.10009090
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.10008ba0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x28]
push eax
call fcn.10008ba0
lea ecx, [ebp - 0x28]
call fcn.10031880
add ebx, eax
adc edi, edx
and dword [ebp - 0x9c], 0xfffffffe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
jmp 0x10031bab
mov byte [ebp - 4], 8
xor eax, eax
or dword [ebp - 0x9c], 2
lea ecx, [ebp - 0x58]
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
call fcn.10009090
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.10008ba0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x58]
push eax
call fcn.10008ba0
lea ecx, [ebp - 0x58]
call fcn.100471d0
movzx eax, al
cdq
add ebx, eax
adc edi, edx
and dword [ebp - 0x9c], 0xfffffffd
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.10005660
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call fcn.100408d0
test al, al
jne 0x10031a34
jmp 0x10031bd4
mov edi, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb0]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10031bec
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x10031bec
mov dword [esi], 0xffffffff
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10031cef
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 9
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.100478b0
test al, al
je 0x10031c47
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10031ce3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10005660
lea ecx, [ebp - 0x40]
call fcn.10046e30
mov dword [ebp - 0xa4], eax
cmp eax, 0xffffffff
je 0x10031cf5
xor edx, edx
lea ecx, [ebp - 0x40]
call fcn.10046d60
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10031cef
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.100478b0
test al, al
je 0x10031cc7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10031ce3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10005660
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x40]
call fcn.10046d60
jmp 0x10031cf5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.10005660
add ebx, 1
adc edi, 0
mov byte [ebp - 4], 1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10031d11
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x10031d11
mov dword [esi], 0xffffffff
push 4
push esi
call fcn.10177d58
add esp, 8
mov dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.10005660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10005660
mov eax, ebx
mov edx, edi
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.10177d47
mov esp, ebp
pop ebp
ret