Function at 0x140043320
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x248], rbx
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov esi, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.14000e930
nop
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.14000e930
nop
lea r8, [0x14008b54c]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14004d520
mov rdi, rax
lea rax, [rbp - 0x68]
cmp rax, rdi
je 0x1400433d1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.14000e930
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.14000eee0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.14000e930
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140043564
mov rdi, rax
nop word [rax + rax]
cmp byte [rbp - 0x14], 0x2e
je 0x140043509
test rbx, rbx
je 0x14004344b
test esi, esi
jne 0x14004344b
mov rax, rbx
lea r8, [rbp - 0x14]
sub r8, rbx
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140043443
inc rax
test ecx, ecx
jne 0x140043430
test edx, edx
je 0x140043509
mov qword [rbp - 0x78], 0
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0x10
cmovae rax, qword [rsp + 0x78]
mov byte [rax], 0
lea r8, [0x1400844ac]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.14004d520
nop
lea r8, [rbp - 0x14]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000f9d0
mov rdi, rax
lea rax, [rsp + 0x78]
cmp rax, rdi
je 0x1400434b8
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.14000e930
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14000eee0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.14000e930
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.14000e930
lea rcx, [rsp + 0x78]
test byte [rbp - 0x40], 0x10
je 0x1400434f4
lea r8d, [rsi + 1]
mov rdx, rbx
call fcn.140043320
test al, al
je 0x14004351f
jmp 0x140043504
cmp qword [rbp - 0x70], 0x10
cmovae rcx, qword [rsp + 0x78]
call fcn.140051090
mov rdi, qword [rsp + 0x20]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14004352c
jmp 0x140043410
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140043560
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x140043560
test esi, esi
je 0x140043564
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x18], 0x10
jb 0x140043553
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x140043564
xor bl, bl
jmp 0x140043566
mov bl, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.14000e930
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.14000e930
movzx eax, bl
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140062f80
mov rbx, qword [rsp + 0x248]
add rsp, 0x210
pop rdi
pop rsi
pop rbp
ret