Function at 0x140057f10
Capabilities:
Check for time delay via gettickcount
Get keyboard layout

Disassembly:
push rbx
push r14
push r15
mov eax, 0x8180
call fcn.1400eb380
sub rsp, rax
xor r14d, r14d
mov r15, rcx
cmp byte [rcx], 0x3e
jne 0x140057fe4
mov rcx, qword [0x140136540]
lea rdx, str.UseErrorLevel
call fcn.1400ad2f0
mov r9, qword [0x140136538]
test rax, rax
mov rbx, rax
mov eax, r14d
setne dl
cmp byte [r15 + 1], 3
cmova rax, qword [0x1401364a8]
test rbx, rbx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov byte [rsp + 0x40], 1
sete cl
mov byte [rsp + 0x38], dl
xor r8d, r8d
mov rdx, qword [0x140136530]
mov qword [rsp + 0x30], rax
mov rax, qword [0x140136540]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], cl
lea rcx, [0x140136640]
call fcn.1400527c0
test eax, eax
jne 0x140057fe4
test rbx, rbx
je 0x140057fd4
mov rcx, qword [0x140134210]
lea r8, [r14 - 1]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, str.ERROR
call fcn.1400b0830
mov r14d, eax
mov eax, r14d
add rsp, 0x8180
pop r15
pop r14
pop rbx
ret
movzx eax, byte [r15]
mov qword [rsp + 0x8170], rsi
mov qword [rsp + 0x8168], rdi
mov qword [rsp + 0x8160], r12
movaps xmmword [rsp + 0x8140], xmm6
cmp al, 0x5d
jne 0x140058159
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, qword [0x140136530]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.140022190
mov byte [rsp + 0x81a8], al
test al, al
jne 0x140058081
mov rcx, qword [0x140136530]
lea rdx, [rsp + 0x60]
xor r8d, r8d
call fcn.14007db30
mov dword [rsp + 0x58], eax
test eax, eax
je 0x14005805d
add eax, 0xfffffff4
cmp eax, 0x1f
jbe 0x14005808c
mov rcx, qword [0x140134210]
lea rdx, [0x14011037c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
jmp 0x140058750
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x58], eax
mov rdi, qword [0x140136538]
mov r12d, r14d
mov byte [rsp + 0x81a0], r14b
mov dword [rsp + 0x54], 1
mov byte [rsp + 0x81b0], 1
movzx eax, word [rdi]
mov dword [rsp + 0x50], r14d
test ax, ax
je 0x140058142
movsd xmm6, qword [0x14011c6c0]
nop word [rax + rax]
movzx ebx, ax
test ebx, 0xffffff80
je 0x1400580e0
mov eax, r14d
jmp 0x1400580ec
mov edx, 2
mov ecx, ebx
call fcn.1400d7464
mov ecx, ebx
and ecx, 0xffffffdf
test eax, eax
cmove ecx, ebx
cmp ecx, 0x44
je 0x140058128
cmp ecx, 0x4c
je 0x140058121
cmp ecx, 0x54
jne 0x140058130
lea rcx, [rdi + 2]
mov byte [rsp + 0x81b0], r14b
call fcn.140023cb0
mulsd xmm0, xmm6
cvttsd2si r12d, xmm0
jmp 0x140058130
mov dword [rsp + 0x54], r14d
jmp 0x140058130
mov byte [rsp + 0x81a0], 1
movzx eax, word [rdi + 2]
add rdi, 2
test ax, ax
jne 0x1400580d0
mov dword [rsp + 0x50], r12d
lea rax, [rsp + 0x130]
mov dword [rsp + 0x80], r14d
mov qword [rsp + 0x70], rax
jmp 0x1400581c1
cmp al, 0x3e
je 0x14005817d
mov rdx, qword [0x140136530]
mov rcx, qword [0x140136540]
cmp al, 0x5c
je 0x140058265
cmp word [rcx], r14w
jne 0x14005826f
movzx eax, byte [rsp + 0x81a0]
mov r12d, r14d
mov byte [rsp + 0x81a8], al
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x58], eax
movzx eax, byte [rsp + 0x81a0]
mov byte [rsp + 0x81a0], al
mov eax, dword [rsp + 0x81a0]
mov dword [rsp + 0x54], eax
mov byte [rsp + 0x81b0], 1
mov dword [rsp + 0x50], r14d
cmp byte [r15], 0x3e
mov qword [rsp + 0x8178], rbp
mov qword [rsp + 0x8158], r13
je 0x1400581f6
mov rcx, qword [0x140134210]
lea rdx, [0x1400fb96c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
cmp byte [r15], 0x5c
jne 0x140058216
mov edx, 1
mov rcx, r15
call fcn.14003efb0
mov byte [rsp + 0x81b8], 1
cmp eax, 1
je 0x14005821e
mov byte [rsp + 0x81b8], r14b
mov ebp, r14d
lea rdi, [rsp + 0x130]
lea r13, [0x1400fb87c]
mov ecx, 0x4001
cmp byte [r15 + 1], bpl
jbe 0x140058354
mov rsi, r14
lea r12, [0x140000000]
nop dword [rax]
test ecx, ecx
jne 0x1400582e2
mov qword [rsp + rsi + 0x90], r13
jmp 0x14005833c
cmp word [rdx], r14w
je 0x14005817d
cmp al, 0x5c
mov byte [rsp + 0x81b0], r14b
cmove rcx, rdx
call fcn.140023cb0
movzx eax, byte [rsp + 0x81a0]
movzx edx, byte [rsp + 0x81a0]
mov ecx, dword [rsp + 0x81a0]
mulsd xmm0, qword [0x14011c6c0]
mov byte [rsp + 0x81a0], al
mov eax, dword [rsp + 0x81a0]
mov byte [rsp + 0x81a8], dl
mov dword [rsp + 0x58], ecx
cvttsd2si r12d, xmm0
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x50], r12d
cmp r12d, 1
jge 0x1400581c1
mov r12d, 0x1f4
mov dword [rsp + 0x50], r12d
jmp 0x1400581c1
mov rdx, qword [rsi + r12 + 0x136530]
movsxd rbx, ecx
mov rcx, rdi
mov qword [rsp + rsi + 0x90], rdi
lea r8, [rbx - 1]
call fcn.1400de184
mov rax, 0xffffffffffffffff
mov word [rdi + rbx*2 - 2], r14w
nop
cmp word [rdi + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x140058310
lea rdi, [rdi + rax*2]
add rdi, 2
lea rcx, [rsp + 0x130]
mov rax, rdi
sub rax, rcx
mov ecx, 0x4001
sar rax, 1
sub ecx, eax
movzx eax, byte [r15 + 1]
inc ebp
add rsi, 8
cmp ebp, eax
jl 0x140058250
mov r12d, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdi, qword [rsp + 0x68]
lea r8, [0x140000000]
mov rsi, qword [rsp + 0xb0]
mov ebx, eax
mov rbp, qword [rsp + 0xa8]
xorps xmm6, xmm6
mov r13, qword [rsp + 0x98]
mov r10, qword [0x14012fc08]
mov rdx, qword [rsp + 0x90]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r15]
add eax, 0xffffffc2
cmp eax, 0x3e
ja case.0x1400583c6.69
cdqe
movzx eax, byte [r8 + rax + 0x587a0]
mov ecx, dword [r8 + rax*4 + 0x58780]
add rcx, r8
jmp rcx
movzx eax, byte [r15 + 1]
cmp al, 4
jbe 0x1400583dc
mov rcx, rsi
mov r9, rbp
mov r8, r13
jmp 0x140058408
lea r11, [0x1400fb87c]
mov rcx, r11
cmp al, 3
jbe 0x1400583f2
mov r9, rbp
mov r8, r13
jmp 0x140058408
mov r9, r11
cmp al, 1
jbe 0x1400583fe
mov r8, r13
jmp 0x140058408
mov r8, r11
test al, al
jne 0x140058408
mov rdx, r11
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.1400b20b0
test rax, rax
je case.0x1400583c6.69
mov rax, qword [0x14012fc08]
mov ecx, dword [rax + 0x74]
jmp 0x14005855d
movzx eax, byte [r15 + 1]
cmp al, 4
jbe 0x14005844b
mov rcx, rsi
mov r9, rbp
mov r8, r13
jmp 0x140058477
lea r11, [0x1400fb87c]
mov rcx, r11
cmp al, 3
jbe 0x140058461
mov r9, rbp
mov r8, r13
jmp 0x140058477
mov r9, r11
cmp al, 1
jbe 0x14005846d
mov r8, r13
jmp 0x140058477
mov r8, r11
test al, al
jne 0x140058477
mov rdx, r11
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.1400b20b0
test rax, rax
je 0x140058428
jmp case.0x1400583c6.69
movzx eax, byte [r15 + 1]
cmp al, 4
jbe 0x1400584ac
mov rcx, rsi
mov r9, rbp
mov r8, r13
jmp 0x1400584d8
lea r11, [0x1400fb87c]
mov rcx, r11
cmp al, 3
jbe 0x1400584c2
mov r9, rbp
mov r8, r13
jmp 0x1400584d8
mov r9, r11
cmp al, 1
jbe 0x1400584ce
mov r8, r13
jmp 0x1400584d8
mov r8, r11
test al, al
jne 0x1400584d8
mov rdx, r11
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.1400b1eb0
test rax, rax
jne 0x140058428
jmp case.0x1400583c6.69
movzx eax, byte [r15 + 1]
cmp al, 4
jbe 0x14005850c
mov rcx, rsi
mov r9, rbp
mov r8, r13
jmp 0x140058538
lea r11, [0x1400fb87c]
mov rcx, r11
cmp al, 3
jbe 0x140058522
mov r9, rbp
mov r8, r13
jmp 0x140058538
mov r9, r11
cmp al, 1
jbe 0x14005852e
mov r8, r13
jmp 0x140058538
mov r8, r11
test al, al
jne 0x140058538
mov rdx, r11
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
mov rcx, r10
call fcn.1400b1eb0
test rax, rax
jne case.0x1400583c6.69
mov rcx, qword [0x14012fc08]
mov ecx, dword [rcx + 0x74]
cmp ecx, 0xffffffff
jle 0x14005856c
mov edx, 1
call fcn.140001940
mov eax, 1
jmp 0x140058740
cmp byte [rsp + 0x81b8], r14b
je 0x14005858f
call qword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x14005856c
jmp case.0x1400583c6.69
mov ecx, ntohs
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14005856c
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x14005856c
jmp case.0x1400583c6.69
movzx eax, byte [rsp + 0x81a8]
test al, al
je 0x1400585d0
mov edx, dword [rsp + 0x54]
movzx ecx, al
call fcn.14007de70
cmp al, byte [rsp + 0x81a0]
je 0x14005856c
jmp case.0x1400583c6.69
mov edx, dword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov ecx, dword [rsp + 0x58]
xor r9d, r9d
call fcn.14007df20
ucomisd xmm0, xmm6
jp 0x1400585f1
jne 0x1400585f1
xor eax, eax
jmp 0x1400585f3
mov al, 1
cmp al, byte [rsp + 0x81a0]
je 0x14005856c
jmp case.0x1400583c6.69
test rdi, rdi
je 0x140058703
lea rdx, [rsp + 0x5c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x5c], 0x103
jne 0x1400586f3
cmp byte [rsp + 0x81b0], r14b
jne 0x140058646
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rbx + r12]
sub ecx, eax
cmp ecx, 4
jle 0x140058721
mov edx, 1
mov ecx, 0x80000539
call fcn.140001940
mov r10, qword [0x14012fc08]
lea r8, [0x140000000]
mov rdx, qword [rsp + 0x90]
test al, al
je 0x1400583a0
cmp byte [r10 + 0x139], r14b
je 0x1400583a0
movsxd rcx, dword [0x1401351c8]
lea r8, [0x140000000]
test ecx, ecx
mov eax, 0x190
cmovne eax, ecx
movsxd rdx, eax
cmp qword [r8 + rdx*8 + 0x135808], r15
jne 0x1400586bb
cmp dword [r8 + rdx*4 + 0x1351cc], ebx
mov rdx, qword [rsp + 0x90]
je 0x1400583a0
mov rdx, qword [rsp + 0x90]
mov qword [r8 + rcx*8 + 0x135810], r15
mov dword [r8 + rcx*4 + 0x1351d0], ebx
inc ecx
mov dword [0x1401351c8], ecx
cmp ecx, 0x190
jl 0x1400583a0
mov dword [0x1401351c8], r14d
jmp 0x14005838a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x5c]
jmp 0x140058708
mov dword [rsp + 0x5c], r14d
mov rcx, qword [0x140134210]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, r14d
call fcn.1400014b0
mov eax, 1
jmp 0x140058740
mov rcx, qword [0x140134210]
lea rdx, [0x14011037c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
mov r13, qword [rsp + 0x8158]
mov rbp, qword [rsp + 0x8178]
mov rdi, qword [rsp + 0x8168]
mov rsi, qword [rsp + 0x8170]
mov r12, qword [rsp + 0x8160]
movaps xmm6, xmmword [rsp + 0x8140]
add rsp, 0x8180
pop r15
pop r14
pop rbx
ret