Function at 0x5bd090
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rbx
sub rsp, 0x158
mov rbp, rsp
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x138], 0
mov qword [rbp + 0x130], 0
mov qword [rbp + 0x148], 0
mov qword [rbp + 0x88], rbp
mov qword [rbp + 0x170], rcx
mov qword [rbp + 0x178], rdx
nop
mov rax, qword [rbp + 0x170]
movzx rcx, byte [rax + 0x55a]
cmp cl, 7
ja 0x5bd155
mov al, 1
shl eax, cl
movzx rcx, byte [0x005bd8d8]
test al, cl
setne al
jmp 0x5bd157
xor eax, eax
test al, al
je 0x5bd18a
mov rcx, qword [rbp + 0x170]
lea rdx, [rbp + 0x80]
call fcn.00584ac0
mov rax, qword [rbp + 0x170]
lea rcx, [rax + 0x550]
mov rdx, qword [rbp + 0x80]
call fcn.00410390
jmp 0x5bd1d0
call sub.kernel32.dll_GetTickCount
mov rcx, qword [rbp + 0x170]
sub eax, dword [rcx + 0x54c]
mov rcx, qword [rbp + 0x170]
cmp eax, dword [rcx + 0x58c]
jb 0x5bd1be
mov rax, qword [rbp + 0x170]
lea rcx, [rax + 0x550]
call fcn.0040fd60
call sub.kernel32.dll_GetTickCount
mov rcx, qword [rbp + 0x170]
mov dword [rcx + 0x54c], eax
mov rax, qword [rbp + 0x178]
movzx rax, word [rax]
sub ax, 8
test ax, ax
je 0x5bd23a
sub ax, 1
test ax, ax
je 0x5bd1ff
sub ax, 0x12
test ax, ax
jne 0x5bd550
jmp 0x5bd809
mov rax, qword [rbp + 0x170]
cmp byte [rax + 0x549], 0
je 0x5bd808
mov rcx, qword [rbp + 0x170]
call fcn.005ba7b0
test al, al
je 0x5bd808
mov rcx, qword [rbp + 0x170]
xor edx, edx
call fcn.005ba7e0
jmp 0x5bd808
mov rcx, rbp
lea rdx, [rbp + 0x144]
lea r8, [rbp + 0x140]
call fcn.005bcf20
test al, al
je 0x5bd26e
mov rcx, rbp
mov edx, dword [rbp + 0x144]
mov r8d, dword [rbp + 0x140]
call fcn.005bcfa0
jmp 0x5bd523
mov rax, qword [rbp + 0x170]
movzx rcx, byte [rax + 0x55a]
cmp cl, 7
ja 0x5bd295
mov al, 1
shl eax, cl
movzx rcx, byte [0x005bd8d8]
test al, cl
setne al
jmp 0x5bd297
xor eax, eax
test al, al
je 0x5bd2e7
mov rcx, qword [rbp + 0x170]
lea rdx, [rbp + 0x78]
call fcn.00584ac0
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0xf0], rax
mov dword [rbp + 0xec], 0
mov rax, qword [rbp + 0xf0]
test rax, rax
je 0x5bd2d5
mov eax, dword [rax - 4]
mov dword [rbp + 0xec], eax
cmp dword [rbp + 0xec], 0
setg al
mov byte [rbp + 0xeb], al
jmp 0x5bd2ee
mov byte [rbp + 0xeb], 0
cmp byte [rbp + 0xeb], 0
je 0x5bd47a
mov rcx, qword [rbp + 0x170]
lea rdx, [rbp + 0x130]
call fcn.00584ac0
mov eax, dword [rbp + 0x144]
mov dword [rbp + 0x12c], eax
jmp 0x5bd323
sub dword [rbp + 0x12c], 1
mov rcx, qword [rbp + 0x130]
mov edx, dword [rbp + 0x12c]
call fcn.0043da90
cmp al, 2
je 0x5bd31c
lea rcx, [rbp + 0x138]
mov rdx, qword [rbp + 0x130]
mov r8d, 1
mov r9d, dword [rbp + 0x12c]
sub r9d, 1
call fcn.004119f0
mov rcx, qword [rbp + 0x170]
call fcn.00592a80
mov rcx, rax
mov edx, 0x14e
or r8, 0xffffffffffffffff
xor r9, r9
call sub.user32.dll_SendMessageW
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x130]
mov r8d, dword [rbp + 0x140]
add r8d, 1
mov r9d, 0x7fffffff
call fcn.004119f0
lea rcx, [rbp + 0x70]
mov rdx, qword [rbp + 0x138]
mov r8, qword [rbp + 0x68]
call fcn.004117d0
mov rcx, qword [rbp + 0x170]
mov rdx, qword [rbp + 0x70]
call fcn.00584b30
mov rcx, qword [rbp + 0x170]
call fcn.00592a80
mov rcx, rax
movzx rax, word [rbp + 0x12c]
sub ax, 1
movzx eax, ax
mov edx, 0x142
xor r8, r8
mov r9d, eax
shl r9d, 0x10
or eax, r9d
movsxd r9, eax
call sub.user32.dll_SendMessageW
mov rcx, qword [rbp + 0x170]
lea rdx, [rbp + 0x60]
call fcn.00584ac0
mov rax, qword [rbp + 0x170]
lea rcx, [rax + 0x550]
mov rdx, qword [rbp + 0x60]
call fcn.00410390
jmp 0x5bd523
mov rax, qword [rbp + 0x170]
mov rax, qword [rax + 0x550]
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0xcc], 0
mov rax, qword [rbp + 0xd0]
test rax, rax
je 0x5bd45b
mov eax, dword [rax - 4]
mov dword [rbp + 0xcc], eax
mov rax, qword [rbp + 0x170]
lea rcx, [rax + 0x550]
mov edx, dword [rbp + 0xcc]
mov r8d, 1
call fcn.00411a50
mov rax, qword [rbp + 0x170]
mov rax, qword [rax + 0x550]
mov qword [rbp + 0xe0], rax
mov dword [rbp + 0xdc], 0
mov rax, qword [rbp + 0xe0]
test rax, rax
je 0x5bd4ae
mov eax, dword [rax - 4]
mov dword [rbp + 0xdc], eax
mov rax, qword [rbp + 0x170]
mov rcx, qword [rax + 0x550]
mov edx, dword [rbp + 0xdc]
call fcn.0043da90
cmp al, 2
je 0x5bd427
mov rax, qword [rbp + 0x170]
mov rax, qword [rax + 0x550]
mov qword [rbp + 0xc0], rax
mov dword [rbp + 0xbc], 0
mov rax, qword [rbp + 0xc0]
test rax, rax
je 0x5bd504
mov eax, dword [rax - 4]
mov dword [rbp + 0xbc], eax
mov rax, qword [rbp + 0x170]
lea rcx, [rax + 0x550]
mov edx, dword [rbp + 0xbc]
mov r8d, 1
call fcn.00411a50
mov rax, qword [rbp + 0x178]
mov word [rax], 0
mov rcx, qword [rbp + 0x170]
mov dx, 0xffac
call fcn.0040d210
mov rbx, rax
mov rcx, qword [rbp + 0x170]
call rbx
jmp 0x5bd808
mov rcx, rbp
lea rdx, [rbp + 0x144]
lea r8, [rbp + 0x140]
call fcn.005bcf20
mov rax, qword [rbp + 0x170]
cmp byte [rax + 0x55a], 2
jae 0x5bd5c1
mov rax, qword [rbp + 0x170]
mov rax, qword [rax + 0x550]
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0xac], 0
mov rax, qword [rbp + 0xb0]
test rax, rax
je 0x5bd5aa
mov eax, dword [rax - 4]
mov dword [rbp + 0xac], eax
mov eax, dword [rbp + 0x144]
cmp eax, dword [rbp + 0xac]
setl al
mov byte [rbp + 0xab], al
jmp 0x5bd5c8
mov byte [rbp + 0xab], 0
cmp byte [rbp + 0xab], 0
je 0x5bd6b0
nop
mov qword [rbp + 0x148], 0
lea rcx, [rbp + 0x58]
mov rax, qword [rbp + 0x170]
mov rdx, qword [rax + 0x550]
mov r8d, 1
mov r9d, dword [rbp + 0x144]
call fcn.004119f0
lea rcx, [rbp + 0x50]
mov rax, qword [rbp + 0x178]
movzx rdx, word [rax]
call fcn.004113b0
lea rcx, [rbp + 0x148]
mov rdx, qword [rbp + 0x58]
mov r8, qword [rbp + 0x50]
call fcn.004117d0
mov rax, qword [rbp + 0x170]
mov rax, qword [rax + 0x550]
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0x9c], 0
mov rax, qword [rbp + 0xa0]
test rax, rax
je 0x5bd661
mov eax, dword [rax - 4]
mov dword [rbp + 0x9c], eax
lea rcx, [rbp + 0x48]
mov rax, qword [rbp + 0x170]
mov rdx, qword [rax + 0x550]
mov r8d, dword [rbp + 0x140]
add r8d, 1
mov r9d, dword [rbp + 0x9c]
call fcn.004119f0
lea rcx, [rbp + 0x130]
mov rdx, qword [rbp + 0x148]
mov r8, qword [rbp + 0x48]
call fcn.004117d0
nop
lea rcx, [rbp + 0x148]
call fcn.0040fd60
jmp 0x5bd6e2
lea rcx, [rbp + 0x40]
mov rax, qword [rbp + 0x178]
movzx rdx, word [rax]
call fcn.004113b0
lea rcx, [rbp + 0x130]
mov rax, qword [rbp + 0x170]
mov rdx, qword [rax + 0x550]
mov r8, qword [rbp + 0x40]
call fcn.004117d0
mov rax, qword [rbp + 0x170]
cmp byte [rax + 0x549], 0
je 0x5bd710
mov rcx, qword [rbp + 0x170]
call fcn.005ba7b0
test al, al
jne 0x5bd710
mov rcx, qword [rbp + 0x170]
mov dl, 1
call fcn.005ba7e0
mov rax, qword [rbp + 0x178]
cmp word [rax], 0xd800
jb 0x5bd7e5
mov rax, qword [rbp + 0x178]
cmp word [rax], 0xdfff
ja 0x5bd7e5
mov rcx, qword [rbp + 0x170]
call fcn.00592a80
lea rcx, [rbp + 0xf8]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x5bd808
cmp dword [rbp + 0x100], 0x102
jne 0x5bd808
lea rcx, [rbp + 0x30]
movzx rdx, word [rbp + 0x108]
call fcn.004113b0
lea rcx, [rbp + 0x38]
mov rdx, qword [rbp + 0x130]
mov r8, qword [rbp + 0x30]
call fcn.004117d0
mov rcx, qword [rbp + 0x170]
mov rdx, qword [rbp + 0x38]
call fcn.005bd8e0
test al, al
je 0x5bd808
mov rcx, qword [rbp + 0x170]
call fcn.00592a80
lea rcx, [rbp + 0xf8]
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 1
call sub.user32.dll_PeekMessageW
mov rax, qword [rbp + 0x178]
mov word [rax], 0
jmp 0x5bd808
mov rcx, qword [rbp + 0x170]
mov rdx, qword [rbp + 0x130]
call fcn.005bd8e0
test al, al
je 0x5bd808
mov rax, qword [rbp + 0x178]
mov word [rax], 0
nop
lea rcx, [rbp + 0x30]
mov edx, 6
call fcn.0040fe40
lea rcx, [rbp + 0x60]
call fcn.0040fd60
lea rcx, [rbp + 0x68]
mov edx, 2
call fcn.0040fe40
lea rcx, [rbp + 0x78]
mov edx, 2
call fcn.0040fe40
lea rcx, [rbp + 0x130]
mov edx, 2
call fcn.0040fe40
lea rsp, [rbp + 0x158]
pop rbx
pop rbp
ret