Function at 0x1400509c0
Capabilities:
Check for time delay via gettickcount
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x2b8
mov rcx, qword [rdx + 0x10208]
mov rdi, rdx
mov qword [rsp + 0x2f0], rcx
lea rdx, [rsp + 0x60]
mov esi, 0x7fff
xor ebp, ebp
sub rsi, rcx
mov dword [rsp + 0x2e8], ebp
mov rcx, rdi
mov qword [rsp + 0x2f8], rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140050b61
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140100a58]
sub eax, dword [0x140107e7c]
cmp eax, dword [rcx + 0x118]
jbe 0x140050a70
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140050a5d
mov edx, 1
or ecx, 0xffffffff
call fcn.1400016f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140100a58]
mov dword [0x140107e7c], eax
test byte [rsp + 0x60], 0x10
je 0x140050ab6
cmp word [rsp + 0x8c], 0x2e
jne 0x140050aa8
movzx eax, word [rsp + 0x8e]
test ax, ax
je 0x140050b3b
cmp ax, 0x2e
jne 0x140050aa8
cmp word [rsp + 0x90], 0
je 0x140050b3b
cmp dword [rdi + 0x10228], 1
jne 0x140050abf
jmp 0x140050b3b
cmp dword [rdi + 0x10228], 2
je 0x140050b3b
lea rdx, [rsp + 0x8c]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140050ad0
cmp rax, rsi
jbe 0x140050ae8
mov dword [rcx + 0x40], WSAStartup
jmp 0x140050b39
mov rdx, qword [rsp + 0x2f0]
lea r8, [rsp + 0x8c]
lea rax, [rsp + 0x8c]
lea rdx, [rdi + rdx*2]
sub rdx, r8
nop word [rax + rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x140050b10
mov r8, qword [rdi + 0x10220]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [rdi + 0x10218]
test eax, eax
jne 0x140050b3b
inc ebp
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140050a16
mov rcx, rbx
mov dword [rsp + 0x2e8], ebp
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rdi + 0x1022c], 0
je 0x140050cdb
cmp rsi, 1
jbe 0x140050cdb
mov rcx, qword [rsp + 0x2f0]
lea rdx, [rsp + 0x60]
lea rax, [rdi + rcx*2]
mov rcx, rdi
mov dword [rax], 0x2a
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140050cdb
mov rbp, qword [rsp + 0x2f8]
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140100a58]
sub eax, dword [0x140107e7c]
cmp eax, dword [rcx + 0x118]
jbe 0x140050c03
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140050bf7
mov edx, 1
or ecx, 0xffffffff
call fcn.1400016f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140107e7c], eax
test byte [rsp + 0x60], 0x10
je 0x140050cb5
cmp word [rsp + 0x8c], 0x2e
jne 0x140050c3b
movzx eax, word [rsp + 0x8e]
test ax, ax
je 0x140050cb5
cmp ax, 0x2e
jne 0x140050c3b
cmp word [rsp + 0x90], 0
je 0x140050cb5
lea rax, [rsp + 0x8c]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140050c50
mov rcx, qword [rdi + 0x10210]
add rcx, rbx
cmp rcx, rbp
jae 0x140050cb5
mov rcx, qword [rsp + 0x2f0]
lea r9, [rdi + 0x10000]
lea r8, [rsp + 0x8c]
lea rdx, [0x1400e4d88]
lea rcx, [rdi + rcx*2]
call fcn.140005040
mov rax, qword [rsp + 0x2f0]
mov rdx, rdi
mov rcx, qword [rsp + 0x2e0]
inc rax
add rax, rbx
mov qword [rdi + 0x10208], rax
call fcn.1400509c0
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140050bb0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [rsp + 0x2e8]
add dword [rdi + 0x10230], ebp
add rsp, 0x2b8
pop rdi
pop rsi
pop rbp
pop rbx
ret