Function at 0x1400508c0
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 0x140050a61
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140100a58]
sub eax, dword [0x140107e7c]
cmp eax, dword [rcx + 0x118]
jbe 0x140050970
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 0x14005095d
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 0x1400509b6
cmp word [rsp + 0x8c], 0x2e
jne 0x1400509a8
movzx eax, word [rsp + 0x8e]
test ax, ax
je 0x140050a3b
cmp ax, 0x2e
jne 0x1400509a8
cmp word [rsp + 0x90], 0
je 0x140050a3b
cmp dword [rdi + 0x10228], 1
jne 0x1400509bf
jmp 0x140050a3b
cmp dword [rdi + 0x10228], 2
je 0x140050a3b
lea rdx, [rsp + 0x8c]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400509d0
cmp rax, rsi
jbe 0x1400509e8
mov dword [rcx + 0x40], WSAStartup
jmp 0x140050a39
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 0x140050a10
mov r8, qword [rdi + 0x10220]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [rdi + 0x10218]
test eax, eax
jne 0x140050a3b
inc ebp
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140050916
mov rcx, rbx
mov dword [rsp + 0x2e8], ebp
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rdi + 0x1022c], 0
je 0x140050bdb
cmp rsi, 1
jbe 0x140050bdb
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 0x140050bdb
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 0x140050b03
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 0x140050af7
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 0x140050bb5
cmp word [rsp + 0x8c], 0x2e
jne 0x140050b3b
movzx eax, word [rsp + 0x8e]
test ax, ax
je 0x140050bb5
cmp ax, 0x2e
jne 0x140050b3b
cmp word [rsp + 0x90], 0
je 0x140050bb5
lea rax, [rsp + 0x8c]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140050b50
mov rcx, qword [rdi + 0x10210]
add rcx, rbx
cmp rcx, rbp
jae 0x140050bb5
mov rcx, qword [rsp + 0x2f0]
lea r9, [rdi + 0x10000]
lea r8, [rsp + 0x8c]
lea rdx, str._s_s
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.1400508c0
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140050ab0
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