Function at 0x100012a0
Capabilities:
Check for peb beingdebugged flag
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10008501
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x1000d078]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push esi
push edi
mov eax, dword [0x1000d078]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10001301
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x20]
call fcn.10001960
mov dword [esp + 0x2f0], ebx
mov ecx, dword [esp + 0x2c]
lea eax, [ecx - 1]
cmp ecx, eax
ja 0x10001338
push str.invalid_string_position
call fcn.100020e6
mov ecx, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x1000134b
lea ecx, [esp + 0x1c]
cmp word [ecx + eax*2], 0x5c
je 0x1000135b
lea esi, [esp + 0x1c]
call fcn.100017c0
push 0x1000b0b4
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.10001d50
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x10001379
mov eax, dword [eax]
lea ecx, [esp + 0x8c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp dword [esp + 0x68], edi
jb 0x100013a1
mov edx, dword [esp + 0x54]
push edx
call fcn.1000285f
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
cmp esi, 0xffffffff
jne 0x100013e0
cmp dword [esp + 0x30], edi
jb 0x100013cc
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.1000285f
add esp, 4
xor al, al
jmp 0x10001604
test byte [esp + 0x8c], 0x10
lea edx, [esp + 0xb8]
je 0x1000147e
push 0x1000b0bc
push edx
call fcn.100022f8
add esp, 8
test eax, eax
je 0x100015c2
lea eax, [esp + 0xb8]
push 0x1000b0c0
push eax
call fcn.100022f8
add esp, 8
test eax, eax
je 0x100015c2
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.10001d50
add esp, 0xc
mov byte [esp + 0x2f0], 1
cmp dword [eax + 0x14], edi
jb 0x10001451
mov eax, dword [eax]
push eax
call fcn.100012a0
add esp, 4
mov byte [esp + 0x2f0], 0
cmp dword [esp + 0x4c], edi
jb 0x100015c2
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1000285f
add esp, 4
jmp 0x100015c2
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.10001d50
add esp, 0xc
cmp dword [eax + 0x14], edi
jb 0x10001498
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x4c], edi
jb 0x100014b2
mov edx, dword [esp + 0x38]
push edx
call fcn.1000285f
add esp, 4
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.10001d50
add esp, 0xc
cmp dword [eax + 0x10], 0x208
setb bl
cmp dword [esp + 0x4c], edi
jb 0x100014e9
mov eax, dword [esp + 0x38]
push eax
call fcn.1000285f
add esp, 4
test bl, bl
je 0x100015c2
push 0x410
call fcn.10002154
push 0x208
mov esi, eax
push 0
push esi
call fcn.100053a0
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.10001d50
mov edi, eax
lea ecx, [esp + 0xd4]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x318], 2
call fcn.10001d50
mov ebx, 8
add esp, 0x28
cmp dword [edi + 0x14], ebx
jb 0x10001554
mov edi, dword [edi]
mov eax, dword [eax + 0x10]
push edi
inc eax
push eax
push esi
call fcn.10002999
add esp, 0xc
cmp dword [esp + 0x4c], ebx
jb 0x10001576
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1000285f
add esp, 4
xor edx, edx
mov byte [esp + 0x2f0], dl
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], dx
cmp dword [esp + 0x84], ebx
jb 0x100015aa
mov eax, dword [esp + 0x70]
push eax
call fcn.1000285f
add esp, 4
push esi
call fcn.10001120
add esp, 4
test esi, esi
je 0x100015c0
push esi
call fcn.10002821
add esp, 4
mov edi, ebx
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x8c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100013e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esp + 0x30], edi
jb 0x10001602
mov eax, dword [esp + 0x1c]
push eax
call fcn.1000285f
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.1000215f
mov esp, ebp
pop ebp
ret