Function at 0x140050880
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 0x140050a21
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140101a58]
sub eax, dword [0x140108edc]
cmp eax, dword [rcx + 0x118]
jbe 0x140050930
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 0x14005091d
mov edx, 1
or ecx, 0xffffffff
call fcn.140001720
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140101a58]
mov dword [0x140108edc], eax
test byte [rsp + 0x60], 0x10
je 0x140050976
cmp word [rsp + 0x8c], 0x2e
jne 0x140050968
movzx eax, word [rsp + 0x8e]
test ax, ax
je 0x1400509fb
cmp ax, 0x2e
jne 0x140050968
cmp word [rsp + 0x90], 0
je 0x1400509fb
cmp dword [rdi + 0x10228], 1
jne 0x14005097f
jmp 0x1400509fb
cmp dword [rdi + 0x10228], 2
je 0x1400509fb
lea rdx, [rsp + 0x8c]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140050990
cmp rax, rsi
jbe 0x1400509a8
mov dword [rcx + 0x40], WSAStartup
jmp 0x1400509f9
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 0x1400509d0
mov r8, qword [rdi + 0x10220]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [rdi + 0x10218]
test eax, eax
jne 0x1400509fb
inc ebp
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400508d6
mov rcx, rbx
mov dword [rsp + 0x2e8], ebp
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rdi + 0x1022c], 0
je 0x140050b9b
cmp rsi, 1
jbe 0x140050b9b
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 0x140050b9b
mov rbp, qword [rsp + 0x2f8]
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140101a58]
sub eax, dword [0x140108edc]
cmp eax, dword [rcx + 0x118]
jbe 0x140050ac3
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 0x140050ab7
mov edx, 1
or ecx, 0xffffffff
call fcn.140001720
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140108edc], eax
test byte [rsp + 0x60], 0x10
je 0x140050b75
cmp word [rsp + 0x8c], 0x2e
jne 0x140050afb
movzx eax, word [rsp + 0x8e]
test ax, ax
je 0x140050b75
cmp ax, 0x2e
jne 0x140050afb
cmp word [rsp + 0x90], 0
je 0x140050b75
lea rax, [rsp + 0x8c]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140050b10
mov rcx, qword [rdi + 0x10210]
add rcx, rbx
cmp rcx, rbp
jae 0x140050b75
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.140004f90
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.140050880
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140050a70
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