Function at 0x140050550
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 0x1400506f1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140101a58]
sub eax, dword [0x140108e7c]
cmp eax, dword [rcx + 0x118]
jbe 0x140050600
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 0x1400505ed
mov edx, 1
or ecx, 0xffffffff
call fcn.1400016f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140101a58]
mov dword [0x140108e7c], eax
test byte [rsp + 0x60], 0x10
je 0x140050646
cmp word [rsp + 0x8c], 0x2e
jne 0x140050638
movzx eax, word [rsp + 0x8e]
test ax, ax
je 0x1400506cb
cmp ax, 0x2e
jne 0x140050638
cmp word [rsp + 0x90], 0
je 0x1400506cb
cmp dword [rdi + 0x10228], 1
jne 0x14005064f
jmp 0x1400506cb
cmp dword [rdi + 0x10228], 2
je 0x1400506cb
lea rdx, [rsp + 0x8c]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140050660
cmp rax, rsi
jbe 0x140050678
mov dword [rcx + 0x40], WSAStartup
jmp 0x1400506c9
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 0x1400506a0
mov r8, qword [rdi + 0x10220]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [rdi + 0x10218]
test eax, eax
jne 0x1400506cb
inc ebp
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400505a6
mov rcx, rbx
mov dword [rsp + 0x2e8], ebp
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rdi + 0x1022c], 0
je 0x14005086b
cmp rsi, 1
jbe 0x14005086b
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 0x14005086b
mov rbp, qword [rsp + 0x2f8]
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x140101a58]
sub eax, dword [0x140108e7c]
cmp eax, dword [rcx + 0x118]
jbe 0x140050793
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 0x140050787
mov edx, 1
or ecx, 0xffffffff
call fcn.1400016f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140108e7c], eax
test byte [rsp + 0x60], 0x10
je 0x140050845
cmp word [rsp + 0x8c], 0x2e
jne 0x1400507cb
movzx eax, word [rsp + 0x8e]
test ax, ax
je 0x140050845
cmp ax, 0x2e
jne 0x1400507cb
cmp word [rsp + 0x90], 0
je 0x140050845
lea rax, [rsp + 0x8c]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400507e0
mov rcx, qword [rdi + 0x10210]
add rcx, rbx
cmp rcx, rbp
jae 0x140050845
mov rcx, qword [rsp + 0x2f0]
lea r9, [rdi + 0x10000]
lea r8, [rsp + 0x8c]
lea rdx, [0x1400e5cd0]
lea rcx, [rdi + rcx*2]
call fcn.140004f40
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.140050550
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140050740
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