Function at 0x140067aa0
Capabilities:
Check for time delay via gettickcount
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x8070]
mov eax, 0x8170
call fcn.140100df0
sub rsp, rax
xor r13d, r13d
cmp byte [rcx], 0x3e
mov r12, rcx
jne 0x140067e2e
mov rcx, qword [0x14013f5b0]
lea rdx, str.UseErrorLevel
call fcn.1400e0a80
mov r9, qword [0x14013f5a8]
mov rdx, qword [0x14013f5a0]
test rax, rax
mov eax, r13d
setne dil
cmp byte [r12 + 1], 3
cmova rax, qword [0x14013f518]
test dil, dil
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x40], 1
sete cl
mov byte [rsp + 0x38], dil
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rax, qword [0x14013f5b0]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], cl
lea rcx, [0x140143150]
call fcn.140060b90
test eax, eax
jne 0x140067e2e
test dil, dil
je 0x140067e26
mov rdi, qword [0x140140268]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x140067b8d
mov rcx, qword [rdi + 0x10]
lea rdx, str.ERROR
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
mov esi, eax
jmp 0x140068df9
lea r14, str.ERROR
cmp qword [rdi + 8], r14
jne 0x140067ba3
mov r12, qword [rdi + 0x10]
shr r12, 1
jmp 0x140067ba9
mov r12d, 5
lea rcx, [r12 + 1]
lea rsi, [rcx + rcx]
cmp al, 2
jne 0x140067bc8
mov rdx, r12
mov rcx, r14
call fcn.140006bc0
mov esi, eax
jmp 0x140068df9
mov r8, qword [0x14013b0d0]
cmp rsi, r8
jbe 0x140067bfb
cmp rsi, qword [rdi + 0x18]
jbe 0x140067bfb
lea r8, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
call fcn.14005f7b0
mov esi, eax
jmp 0x140068df9
cmp rcx, 2
jae 0x140067c1a
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 3]
call fcn.1400e74d0
mov esi, 1
jmp 0x140068df9
movzx eax, byte [rdi + 0x21]
test al, 2
je 0x140067c37
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r8, qword [0x14013b0d0]
mov rcx, qword [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp rsi, rcx
jbe 0x140067db2
movzx r9d, byte [rdi + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x140067c6c
cmp al, 2
je 0x140067cac
mov rbx, qword [rsp + 0x70]
mov rax, qword [rbp + 0x80b0]
jmp 0x140067da6
cmp rsi, 0x80
ja 0x140067cac
cmp rsi, 8
ja 0x140067c82
mov ebx, 8
jmp 0x140067c92
mov eax, reloc.WSOCK32.dll_recv
mov ebx, 0x80
cmp rsi, rax
cmovbe ebx, eax
mov rcx, rbx
call fcn.1400dd290
test rax, rax
je 0x140067e26
mov byte [rdi + 0x20], 1
jmp 0x140067da6
cmp rsi, 0x20
jae 0x140067cbc
mov ebx, SafeArrayAllocDescriptor
jmp 0x140067d6b
cmp rsi, 0x208
jae 0x140067ccf
mov ebx, 0x208
jmp 0x140067d6b
cmp rsi, 0x50000
jae 0x140067d27
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140067cee
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
movsd xmm1, qword [0x1401279d8]
xor eax, eax
comisd xmm0, xmm1
jbe 0x140067d1d
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x140067d1d
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rbx, xmm0
add rbx, rax
jmp 0x140067d6b
cmp rsi, 0x320000
jae 0x140067d39
lea rbx, [rsi + 0x8000]
jmp 0x140067d6b
cmp rsi, 0xc80000
jae 0x140067d64
movabs rax, 0x47ae147ae147ae15
mov rbx, rsi
mul rsi
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, rsi
jmp 0x140067d6b
lea rbx, [rsi + 0x20000]
cmp rbx, r8
cmova rbx, r8
cmp r9b, 2
jne 0x140067d8c
test rcx, rcx
je 0x140067d8c
mov rcx, qword [rdi + 8]
mov sil, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140067d8f
xor sil, sil
test rbx, rbx
js 0x140067de3
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x140067de3
mov byte [rdi + 0x20], 2
and byte [rdi + 0x21], 0x7f
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rbx
mov rcx, qword [rdi + 8]
cmp rcx, r14
je 0x140067dc8
lea r8, [r12 + r12]
mov rdx, r14
call qword [sym.imp.MSVCR100.dll_memmove]
mov rax, qword [rdi + 8]
lea rcx, [r12 + r12]
mov esi, 1
mov word [rcx + rax], r13w
mov qword [rdi + 0x10], rcx
jmp 0x140068df9
test sil, sil
je 0x140067df9
lea rax, [0x140141fa8]
mov qword [rdi + 0x18], r13
mov qword [rdi + 8], rax
jmp 0x140067e01
mov rax, qword [rdi + 8]
mov word [rax], r13w
lea r8, [0x1401035ac]
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov qword [rdi + 0x10], r13
call fcn.14005f7b0
mov esi, eax
jmp 0x140068df9
mov esi, r13d
jmp 0x140068df9
movzx eax, byte [r12]
mov qword [rsp + 0x8168], r15
mov esi, 1
movaps xmmword [rsp + 0x8150], xmm6
cmp al, 0x5d
jne 0x1400681c0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov rcx, qword [0x14013f5a0]
xor r8d, r8d
mov r9, rax
xor edx, edx
call fcn.140023e00
mov byte [rbp + 0x80c8], al
test al, al
jne 0x14006810d
mov rcx, qword [0x14013f5a0]
lea rdx, [rsp + 0x78]
xor r8d, r8d
call fcn.14009ee10
mov dword [rsp + 0x54], eax
test eax, eax
jne 0x1400680a8
mov rdi, qword [0x140140268]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x140067eb3
mov byte [rsp + 0x20], sil
jmp 0x140068b8e
lea r14, [0x14010771c]
cmp qword [rdi + 8], r14
jne 0x140067ec9
mov r15, qword [rdi + 0x10]
shr r15, 1
jmp 0x140067ecc
mov r15, rsi
lea rdx, [r15 + 1]
lea r12, [rdx + rdx]
cmp al, 2
jne 0x140067eea
mov rdx, r15
mov rcx, r14
call fcn.140006bc0
mov esi, eax
jmp 0x140068de9
mov rcx, qword [0x14013b0d0]
cmp r12, rcx
jbe 0x140067f1d
cmp r12, qword [rdi + 0x18]
jbe 0x140067f1d
lea r8, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
call fcn.14005f7b0
mov esi, eax
jmp 0x140068de9
cmp rdx, 2
jb 0x140068c1c
movzx eax, byte [rdi + 0x21]
test al, 2
je 0x140067f44
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [0x14013b0d0]
mov r8, qword [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp r12, r8
jbe 0x140068dc2
movzx r9d, byte [rdi + 0x20]
movzx eax, r9b
cmp r9b, sil
jbe 0x140067f7a
cmp al, 2
je 0x140067fba
mov rbx, qword [rbp + 0x80b0]
mov rax, qword [rbp + 0x80b0]
jmp 0x140068db6
cmp r12, 0x80
ja 0x140067fba
cmp r12, 8
ja 0x140067f90
mov ebx, 8
jmp 0x140067fa0
mov eax, reloc.WSOCK32.dll_recv
mov ebx, 0x80
cmp r12, rax
cmovbe ebx, eax
mov rcx, rbx
call fcn.1400dd290
test rax, rax
je 0x140068cb1
mov byte [rdi + 0x20], sil
jmp 0x140068db6
cmp r12, 0x20
jae 0x140067fca
mov ebx, SafeArrayAllocDescriptor
jmp 0x14006807b
cmp r12, 0x208
jae 0x140067fdd
mov ebx, 0x208
jmp 0x14006807b
cmp r12, 0x50000
jae 0x140068035
pxor xmm0, xmm0
cvtsi2sd xmm0, r12
test r12, r12
jns 0x140067ffc
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
movsd xmm1, qword [0x1401279d8]
xor eax, eax
comisd xmm0, xmm1
jbe 0x14006802b
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x14006802b
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rbx, xmm0
add rbx, rax
jmp 0x14006807b
cmp r12, 0x320000
jae 0x140068048
lea rbx, [r12 + 0x8000]
jmp 0x14006807b
cmp r12, 0xc80000
jae 0x140068073
movabs rax, 0x47ae147ae147ae15
mov rbx, r12
mul r12
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r12
jmp 0x14006807b
lea rbx, [r12 + 0x20000]
cmp rbx, rcx
cmova rbx, rcx
cmp r9b, 2
jne 0x140068d9c
test r8, r8
je 0x140068d9c
mov rcx, qword [rdi + 8]
movzx r12d, sil
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140068d9f
cmp eax, 0xc
jl 0x1400680b2
cmp eax, 0x2b
jle 0x140068117
mov rdi, qword [0x140140268]
movzx eax, byte [rdi + 0x23]
test al, al
je 0x140067ea9
lea r14, [0x14010771c]
cmp qword [rdi + 8], r14
jne 0x1400680db
mov r15, qword [rdi + 0x10]
shr r15, 1
jmp 0x1400680de
mov r15, rsi
lea rdx, [r15 + 1]
lea r12, [rdx + rdx]
cmp al, 2
je 0x140067ed8
mov rcx, qword [0x14013b0d0]
cmp r12, rcx
jbe 0x140067f1d
cmp r12, qword [rdi + 0x18]
ja 0x140067efc
jmp 0x140067f1d
mov eax, dword [rbp + 0x80b0]
mov dword [rsp + 0x54], eax
mov rbx, qword [0x14013f5a8]
mov byte [rbp + 0x80b8], r13b
mov dword [rsp + 0x58], esi
movzx eax, word [rbx]
mov byte [rbp + 0x80c0], sil
mov dword [rsp + 0x5c], r13d
test ax, ax
je 0x1400681af
movsd xmm6, qword [0x1401279c8]
movzx edi, ax
test edi, 0xffffff80
jne 0x140068164
mov edx, 2
mov ecx, edi
call qword [sym.imp.MSVCR100.dll__isctype]
test eax, eax
je 0x140068164
and edi, 0xffffffdf
movzx eax, di
cmp eax, 0x44
je 0x14006819b
cmp eax, 0x4c
je 0x140068194
cmp eax, 0x54
jne 0x1400681a2
lea rcx, [rbx + 2]
mov byte [rbp + 0x80c0], r13b
call fcn.14002f9a0
mulsd xmm0, xmm6
cvttsd2si ecx, xmm0
mov dword [rsp + 0x5c], ecx
jmp 0x1400681a2
mov dword [rsp + 0x58], r13d
jmp 0x1400681a2
mov byte [rbp + 0x80b8], sil
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x140068145
lea rax, [rbp + 0x40]
mov dword [rbp + 0x30], r13d
mov qword [rbp + 0x20], rax
jmp 0x14006827e
mov rdx, qword [0x14013f5a0]
mov rcx, qword [0x14013f5b0]
cmp al, 0x3e
je 0x1400681dc
cmp al, 0x5c
je 0x1400681e0
cmp word [rcx], r13w
jne 0x1400681e6
cmp al, 0x5c
jne 0x140068244
cmp word [rdx], r13w
je 0x140068244
cmp al, 0x5c
mov byte [rbp + 0x80c0], r13b
cmove rcx, rdx
call fcn.14002f9a0
mulsd xmm0, qword [0x1401279c8]
cvttsd2si eax, xmm0
mov dword [rsp + 0x5c], eax
cmp eax, esi
movzx eax, byte [rbp + 0x80b0]
mov byte [rbp + 0x80c8], al
mov eax, dword [rbp + 0x80b0]
mov dword [rsp + 0x54], eax
movzx eax, byte [rbp + 0x80b0]
mov byte [rbp + 0x80b8], al
mov eax, dword [rbp + 0x80b0]
mov dword [rsp + 0x58], eax
jge 0x14006827e
mov dword [rsp + 0x5c], 0x1f4
jmp 0x14006827e
movzx eax, byte [rbp + 0x80b0]
mov byte [rbp + 0x80c0], sil
mov dword [rsp + 0x5c], r13d
mov byte [rbp + 0x80c8], al
mov eax, dword [rbp + 0x80b0]
mov dword [rsp + 0x54], eax
movzx eax, byte [rbp + 0x80b0]
mov byte [rbp + 0x80b8], al
mov eax, dword [rbp + 0x80b0]
mov dword [rsp + 0x58], eax
cmp byte [r12], 0x3e
movsd xmm6, qword [0x1401279d8]
mov ebx, 8
lea rdi, [0x1401035ac]
movabs r10, 0x8000000000000000
movabs r11, 0x47ae147ae147ae15
lea edx, [rbx + 8]
mov qword [rsp + 0x70], rbx
je 0x14006855e
mov r12, qword [0x140140268]
movzx eax, byte [r12 + 0x23]
test al, al
jne 0x1400682ec
mov rcx, qword [r12 + 0x10]
lea rdx, [0x140103674]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], sil
call fcn.1400e6e20
jmp 0x140068557
lea rdi, [0x140103674]
cmp qword [r12 + 8], rdi
jne 0x140068304
mov r15, qword [r12 + 0x10]
shr r15, 1
jmp 0x140068307
mov r15, rsi
lea rcx, [r15 + 1]
lea r14, [rcx + rcx]
cmp al, 2
jne 0x140068323
mov rdx, r15
mov rcx, rdi
call fcn.140006bc0
jmp 0x140068550
mov r8, qword [0x14013b0d0]
cmp r14, r8
jbe 0x140068358
cmp r14, qword [r12 + 0x18]
jbe 0x140068358
lea rdi, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
mov r8, rdi
call fcn.14005f7b0
jmp 0x140068557
cmp rcx, 2
jae 0x140068372
xor r8d, r8d
mov rcx, r12
lea edx, [r8 + 3]
call fcn.1400e74d0
jmp 0x140068550
movzx eax, byte [r12 + 0x21]
test al, 2
je 0x1400683ad
mov rcx, qword [r12]
and al, 0x3d
mov byte [r12 + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov r8, qword [0x14013b0d0]
mov edx, reloc.WSOCK32.dll_recv
movabs r10, 0x8000000000000000
movabs r11, 0x47ae147ae147ae15
mov rcx, qword [r12 + 0x18]
and byte [r12 + 0x21], 0x82
cmp r14, rcx
jbe 0x140068526
movzx r9d, byte [r12 + 0x20]
movzx eax, r9b
cmp r9b, sil
jbe 0x1400683e7
cmp al, 2
je 0x140068422
mov rdi, qword [rbp + 0x80b0]
mov rax, qword [rbp + 0x80b0]
jmp 0x14006850f
cmp r14, 0x80
ja 0x140068422
cmp r14, rbx
ja 0x1400683fa
mov rdi, rbx
jmp 0x140068407
mov edi, 0x80
cmp r14, 0x10
cmovbe rdi, rdx
mov rcx, rdi
call fcn.1400dd290
test rax, rax
je 0x140068550
mov byte [r12 + 0x20], sil
jmp 0x14006850f
cmp r14, 0x20
jae 0x140068432
mov edi, SafeArrayAllocDescriptor
jmp 0x1400684c8
cmp r14, 0x208
jae 0x140068445
mov edi, 0x208
jmp 0x1400684c8
cmp r14, 0x50000
jae 0x14006848b
pxor xmm0, xmm0
cvtsi2sd xmm0, r14
test r14, r14
jns 0x140068464
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
xor eax, eax
comisd xmm0, xmm6
jbe 0x140068481
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140068481
mov rax, r10
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x1400684c8
cmp r14, 0x320000
jae 0x14006849d
lea rdi, [r14 + 0x8000]
jmp 0x1400684c8
cmp r14, 0xc80000
jae 0x1400684c1
mov rax, r11
mov rdi, r14
mul r14
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, r14
jmp 0x1400684c8
lea rdi, [r14 + 0x20000]
cmp rdi, r8
cmova rdi, r8
cmp r9b, 2
jne 0x1400684eb
test rcx, rcx
je 0x1400684eb
mov rcx, qword [r12 + 8]
movzx r14d, sil
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x1400684ee
xor r14b, r14b
test rdi, rdi
js 0x1400685b3
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x1400685b3
mov byte [r12 + 0x20], 2
and byte [r12 + 0x21], 0x7f
mov qword [r12 + 0x18], rdi
mov qword [r12 + 8], rax
lea rdi, [0x140103674]
mov rcx, qword [r12 + 8]
cmp rcx, rdi
je 0x14006853d
lea r8, [r15 + r15]
mov rdx, rdi
call qword [sym.imp.MSVCR100.dll_memmove]
mov rax, qword [r12 + 8]
lea rcx, [r15 + r15]
mov word [rcx + rax], r13w
mov qword [r12 + 0x10], rcx
lea rdi, [0x1401035ac]
mov r12, qword [rbp + 0x80b0]
cmp byte [r12], 0x5c
jne 0x140068578
mov edx, esi
mov rcx, r12
call fcn.14004cc90
mov byte [rsp + 0x50], sil
cmp eax, esi
je 0x14006857d
mov byte [rsp + 0x50], r13b
mov r15d, r13d
mov ecx, 0x4001
lea r14, [rbp + 0x40]
cmp byte [r12 + 1], r13b
jbe 0x140068671
mov rbx, qword [rbp + 0x80b0]
mov r12, r13
lea rsi, [0x140000000]
test ecx, ecx
jne 0x1400685fb
mov qword [rbp + r12 - 0x80], rdi
jmp 0x14006864c
test r14b, r14b
je 0x1400685cb
lea rax, [0x140141fa8]
mov qword [r12 + 0x18], r13
mov qword [r12 + 8], rax
jmp 0x1400685d4
mov rax, qword [r12 + 8]
mov word [rax], r13w
lea rdi, [0x1401035ac]
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov r8, rdi
mov qword [r12 + 0x10], r13
call fcn.14005f7b0
jmp 0x140068557
mov rdx, qword [r12 + rsi + 0x13f5a0]
movsxd rdi, ecx
mov rcx, r14
lea r8, [rdi - 1]
mov qword [rbp + r12 - 0x80], r14
call qword [sym.imp.MSVCR100.dll_wcsncpy]
xor eax, eax
or rcx, 0xffffffffffffffff
mov word [r14 + rdi*2 - 2], r13w
mov rdi, r14
repne scasw ax, word [rdi]
lea rdi, [0x1401035ac]
not rcx
lea r14, [r14 + rcx*2]
lea rcx, [rbp + 0x40]
mov rax, r14
sub rax, rcx
mov ecx, 0x4001
sar rax, 1
sub ecx, eax
movzx eax, byte [rbx + 1]
inc r15d
add r12, 8
cmp r15d, eax
jl 0x1400685a5
mov rbx, qword [rsp + 0x70]
mov r12, qword [rbp + 0x80b0]
mov esi, 1
mov eax, dword gs:[0x48]
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15d, dword [rsp + 0x5c]
mov r14d, eax
mov rdi, qword [0x14013b0f8]
mov r11, qword [rbp - 0x78]
mov r10, qword [rbp - 0x68]
mov r9, qword [rbp - 0x60]
mov r8, qword [rsp + 0x60]
nop word [rax + rax]
lea rdx, [0x140000000]
nop word [rax + rax]
movzx eax, byte [r12]
add eax, 0xffffffc2
cmp eax, 0x3e
ja case.0x1400686e5.69
cdqe
movzx eax, byte [rdx + rax + 0x68e70]
mov ecx, dword [rdx + rax*4 + 0x68e50]
add rcx, rdx
jmp rcx
movzx eax, byte [r12 + 1]
lea r12, [0x1401035ac]
mov dword [rsp + 0x40], r13d
cmp al, 4
mov qword [rsp + 0x38], r13
mov byte [rsp + 0x30], 1
mov rcx, r12
mov r8, r12
mov rdx, r12
cmova rcx, r9
cmp al, 3
mov r9, r12
cmova r9, r10
cmp al, 1
mov byte [rsp + 0x28], r13b
cmova r8, r11
test al, al
mov qword [rsp + 0x20], rcx
cmovne rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.1400e8600
test rax, rax
jne 0x140068b02
mov r12, qword [rbp + 0x80b0]
jmp case.0x1400686e5.69
movzx eax, byte [r12 + 1]
lea r12, [0x1401035ac]
mov dword [rsp + 0x40], r13d
cmp al, 4
mov qword [rsp + 0x38], r13
mov byte [rsp + 0x30], r13b
mov rcx, r12
mov r8, r12
mov rdx, r12
cmova rcx, r9
cmp al, 3
mov r9, r12
cmova r9, r10
cmp al, 1
mov byte [rsp + 0x28], r13b
cmova r8, r11
test al, al
mov qword [rsp + 0x20], rcx
cmovne rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.1400e8600
test rax, rax
je 0x140068856
mov r12, qword [rbp + 0x80b0]
jmp case.0x1400686e5.69
movzx eax, byte [r12 + 1]
lea r12, [0x1401035ac]
mov byte [rsp + 0x28], 1
cmp al, 4
mov rcx, r12
mov r8, r12
cmova rcx, r9
cmp al, 3
mov r9, r12
cmova r9, r10
cmp al, 1
mov qword [rsp + 0x20], rcx
cmova r8, r11
test al, al
mov rdx, r12
cmovne rdx, qword [rbp - 0x80]
mov rcx, rdi
call fcn.1400e8430
test rax, rax
jne 0x140068856
mov r12, qword [rbp + 0x80b0]
jmp case.0x1400686e5.69
movzx eax, byte [r12 + 1]
lea rdx, [0x1401035ac]
mov byte [rsp + 0x28], 1
cmp al, 4
mov rcx, rdx
mov r8, rdx
cmova rcx, r9
cmp al, 3
mov r9, rdx
cmova r9, r10
cmp al, 1
mov qword [rsp + 0x20], rcx
cmova r8, r11
test al, al
mov rcx, rdi
cmovne rdx, qword [rbp - 0x80]
call fcn.1400e8430
test rax, rax
jne case.0x1400686e5.69
mov rax, qword [0x14013b0f8]
cmp dword [rax + 0x74], 0xffffffff
jle 0x140068de9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1401430c0], eax
mov rax, qword [0x14013b0f8]
mov ecx, dword [rax + 0x74]
jne 0x140068b41
mov edx, esi
call fcn.140001b80
jmp 0x140068de9
cmp byte [rsp + 0x50], r13b
je 0x1400688a9
call qword [sym.imp.USER32.dll_CountClipboardFormats]
test eax, eax
jne 0x140068de9
jmp case.0x1400686e5.69
mov ecx, recv
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x140068de9
lea ecx, [rax + 0xf]
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x140068de9
jmp case.0x1400686e5.69
movzx edi, byte [rbp + 0x80c8]
test dil, dil
je 0x140068982
mov ecx, dword [rsp + 0x58]
dec ecx
je 0x140068907
dec ecx
movzx ecx, dil
je 0x1400688fa
call qword [sym.imp.USER32.dll_GetKeyState]
jmp 0x14006892e
call qword [sym.imp.USER32.dll_GetKeyState]
and al, 1
movzx edx, al
jmp 0x140068937
lea eax, [rdi - 1]
cmp al, 5
ja 0x140068914
cmp dil, 3
jne 0x14006891b
lea eax, [rdi + 0x66]
cmp al, 5
ja 0x140068948
cmp qword [0x14013f850], r13
jne 0x140068971
movzx ecx, dil
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx edx, ax
shr edx, 0xf
and dl, 1
cmp dl, byte [rbp + 0x80b8]
je 0x140068de9
jmp case.0x1400686e5.69
cmp qword [0x14013f848], r13
je 0x140068924
xor edx, edx
xor r8d, r8d
movzx ecx, dil
call fcn.1400233b0
test al, al
je 0x14006896a
mov cl, 1
call fcn.1400231a0
lea rdx, [0x140000000]
movzx eax, dil
movzx edx, byte [rax + rdx + 0x13f740]
shr dl, 7
jmp 0x140068937
mov rax, qword [rbp + 0x20]
mov word [rax], r13w
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x1400689b4
mov edx, dword [rsp + 0x78]
lea r8, [rbp + 0x20]
xor r9d, r9d
mov ecx, eax
call fcn.14009f240
ucomisd xmm0, qword [0x140127ab8]
jp 0x1400689b0
je 0x1400689b4
mov al, 1
jmp 0x1400689b6
xor eax, eax
cmp al, byte [rbp + 0x80b8]
je 0x140068de9
jmp case.0x1400686e5.69
test r8, r8
je 0x140068b5e
lea rdx, [rsp + 0x68]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [rsp + 0x68], 0x103
jne 0x140068b4c
mov eax, dword [rsp + 0x70]
cmp dword [0x1401430c0], eax
jne 0x140068ad4
cmp byte [rbp + 0x80c0], r13b
jne 0x140068a17
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + r15]
sub ecx, eax
cmp ecx, 5
jle 0x140068add
mov edx, esi
mov ecx, 0x8000012f
call fcn.140001b80
test al, al
je 0x14006868b
mov rdi, qword [0x14013b0f8]
mov r8, qword [rsp + 0x60]
mov r9, qword [rbp - 0x60]
mov r10, qword [rbp - 0x68]
mov r11, qword [rbp - 0x78]
cmp byte [rdi + 0x139], r13b
je 0x1400686b0
movsxd rcx, dword [0x1401405f8]
mov eax, 0x190
test ecx, ecx
cmovne eax, ecx
dec eax
movsxd rdx, eax
lea rax, [0x140000000]
cmp qword [rax + rdx*8 + 0x140600], r12
jne 0x140068a8c
cmp dword [rax + rdx*4 + 0x13eec0], r14d
lea rdx, [0x140000000]
je 0x1400686c0
mov r8, qword [rsp + 0x60]
mov r9, qword [rbp - 0x60]
mov r10, qword [rbp - 0x68]
mov r11, qword [rbp - 0x78]
lea rdx, [0x140000000]
mov qword [rdx + rcx*8 + 0x140600], r12
mov dword [rdx + rcx*4 + 0x13eec0], r14d
inc ecx
mov dword [0x1401405f8], ecx
cmp ecx, 0x190
jl 0x1400686c0
mov dword [0x1401405f8], r13d
jmp 0x1400686c0
cmp byte [rbp + 0x80c0], r13b
jne 0x140068af2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [r14 + r15]
sub ecx, eax
cmp ecx, 5
jle 0x140068b7a
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14006868b
mov rax, qword [0x14013b0f8]
cmp dword [rax + 0x74], 0xffffffff
jle 0x140068de9
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1401430c0], eax
jne 0x140068b37
mov rax, qword [0x14013b0f8]
mov edx, esi
mov ecx, dword [rax + 0x74]
call fcn.140001b80
jmp 0x140068de9
mov rcx, qword [0x14013b0f8]
mov ecx, dword [rcx + 0x74]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140068de9
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13d, dword [rsp + 0x68]
jmp 0x140068b63
mov dword [rsp + 0x68], r13d
mov rcx, qword [0x140140268]
movsxd rdx, r13d
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140001090
jmp 0x140068de9
mov rdi, qword [0x140140268]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x140068bac
mov byte [rsp + 0x20], 1
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14010771c]
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.1400e6e20
mov esi, eax
jmp 0x140068de9
lea r14, [0x14010771c]
cmp qword [rdi + 8], r14
jne 0x140068bc2
mov r15, qword [rdi + 0x10]
shr r15, 1
jmp 0x140068bc5
mov r15, rsi
lea rdx, [r15 + 1]
lea r12, [rdx + rdx]
cmp al, 2
jne 0x140068be3
mov rdx, r15
mov rcx, r14
call fcn.140006bc0
mov esi, eax
jmp 0x140068de9
mov rcx, qword [0x14013b0d0]
cmp r12, rcx
jbe 0x140068c16
cmp r12, qword [rdi + 0x18]
jbe 0x140068c16
lea r8, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
call fcn.14005f7b0
mov esi, eax
jmp 0x140068de9
cmp rdx, 2
jae 0x140068c30
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 3]
call fcn.1400e74d0
jmp 0x140068de9
movzx eax, byte [rdi + 0x21]
test al, 2
je 0x140068c4d
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [0x14013b0d0]
mov r8, qword [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp r12, r8
jbe 0x140068dc2
movzx r9d, byte [rdi + 0x20]
movzx eax, r9b
cmp r9b, 1
jbe 0x140068c84
cmp al, 2
je 0x140068cc2
mov rbx, qword [rbp + 0x80b0]
mov rax, qword [rbp + 0x80b0]
jmp 0x140068db6
cmp r12, 0x80
ja 0x140068cc2
cmp r12, 8
jbe 0x140068ca4
mov ebx, 0x80
cmp r12, 0x10
mov eax, reloc.WSOCK32.dll_recv
cmovbe ebx, eax
mov rcx, rbx
call fcn.1400dd290
test rax, rax
jne 0x140068cb9
mov esi, r13d
jmp 0x140068de9
mov byte [rdi + 0x20], 1
jmp 0x140068db6
cmp r12, 0x20
jae 0x140068cd2
mov ebx, SafeArrayAllocDescriptor
jmp 0x140068d7b
cmp r12, 0x208
jae 0x140068ce5
mov ebx, 0x208
jmp 0x140068d7b
cmp r12, 0x50000
jae 0x140068d35
pxor xmm0, xmm0
cvtsi2sd xmm0, r12
test r12, r12
jns 0x140068d04
addsd xmm0, qword [0x1401279a8]
mulsd xmm0, qword [0x1401279e0]
xor eax, eax
comisd xmm0, xmm6
jbe 0x140068d2b
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140068d2b
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rbx, xmm0
add rbx, rax
jmp 0x140068d7b
cmp r12, 0x320000
jae 0x140068d48
lea rbx, [r12 + 0x8000]
jmp 0x140068d7b
cmp r12, 0xc80000
jae 0x140068d73
movabs rax, 0x47ae147ae147ae15
mov rbx, r12
mul r12
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r12
jmp 0x140068d7b
lea rbx, [r12 + 0x20000]
cmp rbx, rcx
cmova rbx, rcx
cmp r9b, 2
jne 0x140068d9c
test r8, r8
je 0x140068d9c
mov rcx, qword [rdi + 8]
mov r12b, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140068d9f
xor r12b, r12b
test rbx, rbx
js 0x140068e0d
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x140068e0d
mov byte [rdi + 0x20], 2
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], rbx
and byte [rdi + 0x21], 0x7f
mov rcx, qword [rdi + 8]
cmp rcx, r14
je 0x140068dd8
lea r8, [r15 + r15]
mov rdx, r14
call qword [sym.imp.MSVCR100.dll_memmove]
mov rax, qword [rdi + 8]
lea rcx, [r15 + r15]
mov word [rcx + rax], r13w
mov qword [rdi + 0x10], rcx
mov r15, qword [rsp + 0x8168]
movaps xmm6, xmmword [rsp + 0x8150]
mov eax, esi
add rsp, 0x8170
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r12b, r12b
je 0x140068e23
lea rax, [0x140141fa8]
mov qword [rdi + 0x18], r13
mov qword [rdi + 8], rax
jmp 0x140068e2b
mov rax, qword [rdi + 8]
mov word [rax], r13w
lea r8, [0x1401035ac]
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov qword [rdi + 0x10], r13
call fcn.14005f7b0
mov esi, eax
jmp 0x140068de9