Function at 0x10023940
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x1006e1e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp + 8]
call fcn.10002c60
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x288], eax
cmp dword [ebp - 0x288], 0xffffffff
je 0x1002399d
mov eax, dword [ebp - 0x288]
and eax, 0x10
jne 0x100239be
mov byte [ebp - 0x263], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002290
mov al, byte [ebp - 0x263]
jmp 0x10023c10
push 0x10065d34
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x29c]
push edx
call fcn.10008a00
add esp, 0xc
mov dword [ebp - 0x2a0], eax
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x2a0]
call fcn.10002200
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x278], eax
lea ecx, [ebp - 0x29c]
call fcn.10002290
cmp dword [ebp - 0x278], 0xffffffff
je 0x10023ba7
mov dword [ebp - 0x274], 0x10065d38
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x268], ecx
mov edx, dword [ebp - 0x268]
mov ax, word [edx]
mov word [ebp - 0x27c], ax
mov ecx, dword [ebp - 0x274]
cmp ax, word [ecx]
jne 0x10023a8f
cmp word [ebp - 0x27c], 0
je 0x10023a83
mov edx, dword [ebp - 0x268]
mov ax, word [edx + 2]
mov word [ebp - 0x27e], ax
mov ecx, dword [ebp - 0x274]
cmp ax, word [ecx + 2]
jne 0x10023a8f
add dword [ebp - 0x268], 4
add dword [ebp - 0x274], 4
cmp word [ebp - 0x27e], 0
jne 0x10023a29
mov dword [ebp - 0x28c], 0
jmp 0x10023a9a
sbb edx, edx
or edx, 1
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
je 0x10023b7c
mov dword [ebp - 0x26c], 0x10065d3c
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x270], ecx
mov edx, dword [ebp - 0x270]
mov ax, word [edx]
mov word [ebp - 0x280], ax
mov ecx, dword [ebp - 0x26c]
cmp ax, word [ecx]
jne 0x10023b2f
cmp word [ebp - 0x280], 0
je 0x10023b23
mov edx, dword [ebp - 0x270]
mov ax, word [edx + 2]
mov word [ebp - 0x27a], ax
mov ecx, dword [ebp - 0x26c]
cmp ax, word [ecx + 2]
jne 0x10023b2f
add dword [ebp - 0x270], 4
add dword [ebp - 0x26c], 4
cmp word [ebp - 0x27a], 0
jne 0x10023ac9
mov dword [ebp - 0x290], 0
jmp 0x10023b3a
sbb edx, edx
or edx, 1
mov dword [ebp - 0x290], edx
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x298], eax
cmp dword [ebp - 0x298], 0
je 0x10023b7c
push 5
push ecx
mov ecx, esp
mov dword [ebp - 0x2a4], esp
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp + 8]
push eax
push ecx
call fcn.10008a00
add esp, 0xc
mov dword [ebp - 0x2a8], eax
call fcn.100210b0
add esp, 8
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10023a13
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x10023bc5
mov byte [ebp - 0x261], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002290
mov al, byte [ebp - 0x261]
jmp 0x10023c10
lea ecx, [ebp + 8]
call fcn.10002200
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
jne 0x10023be5
mov dword [ebp - 0x284], 1
jmp 0x10023bef
mov dword [ebp - 0x284], 0
mov cl, byte [ebp - 0x284]
mov byte [ebp - 0x262], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10002290
mov al, byte [ebp - 0x262]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002d4ad
mov esp, ebp
pop ebp
ret