Function at 0x140065840
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x105e8
call fcn.140100df0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov rsi, qword [0x14013f500]
movaps xmmword [rbp + 0x10590], xmm6
movaps xmmword [rbp + 0x10580], xmm7
mov qword [rbp + 8], rsi
movaps xmmword [rbp + 0x10570], xmm8
test rsi, rsi
jne 0x1400658ac
cmp dword [0x1401430f0], 1
sete al
xor r13d, r13d
test al, al
mov dword [0x1401430f0], r13d
sete dl
call fcn.14005e3f0
jmp 0x1400678b0
mov rbx, qword [0x14013f5a8]
mov r12, qword [0x14013f5b0]
mov r14, qword [0x14013f5b8]
xor r13d, r13d
lea rax, [rbp + 0x570]
xor dil, dil
mov qword [0x140143140], rax
mov eax, r13d
mov edx, 0x3fff
mov dword [0x1401430f0], r13d
mov word [rbp + 0x570], r13w
mov word [rbp + 0x8570], r13w
mov dword [rbp + 0x10], eax
mov dword [0x140143148], r13d
mov dword [0x140143134], 1
mov word [0x140143138], r13w
mov dword [0x14014314c], edx
movzx eax, word [rbx]
mov qword [rbp + 0x10600], r12
mov qword [rbp + 0x18], r14
mov byte [rbp + 0x105f8], dil
test ax, ax
je 0x140065a41
lea r15, [rbx + 2]
lea r14d, [r13 + 1]
mov r12d, edx
nop
movzx edi, ax
test edi, 0xffffff80
jne 0x14006595f
mov edx, 2
mov ecx, edi
call qword [sym.imp.MSVCR100.dll__isctype]
test eax, eax
je 0x14006595f
and edi, 0xffffffdf
movzx eax, di
add eax, 0xffffffd6
cmp eax, 0x2c
ja case.0x140065989.43
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x67940]
mov ecx, dword [rdx + rax*4 + 0x67914]
add rcx, rdx
jmp rcx
xor r8d, r8d
mov edx, r14d
mov rcx, rsi
call fcn.140001830
or rcx, 0xffffffffffffffff
mov rdi, rax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
dec rcx
je case.0x140065989.43
xor r8d, r8d
mov edx, r14d
mov rcx, rsi
call fcn.140001830
or rcx, 0xffffffffffffffff
mov edx, r14d
mov rdi, rax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, r12d
cmovg ecx, r12d
xor r8d, r8d
mov dword [0x140143148], ecx
movsxd rdi, ecx
mov rcx, rsi
call fcn.140001830
lea rcx, [rbp + 0x570]
mov r8, rdi
mov rdx, rax
call qword [sym.imp.MSVCR100.dll_wcsncpy]
mov rdx, r13
movzx eax, word [rbp + rdx + 0x570]
add rdx, 2
mov word [rbp + rdx + 0x856e], ax
test ax, ax
jne 0x140065a01
movzx edi, byte [rbp + 0x105f8]
movzx eax, word [rbx + 2]
add rbx, 2
add r15, 2
test ax, ax
jne 0x140065940
mov r12, qword [rbp + 0x10600]
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x171]
xor edx, edx
mov r8d, 0xff
mov byte [rbp + 0x170], r13b
call sub.MSVCR100.dll_memset
lea rcx, [rbp + 0x371]
xor edx, edx
mov r8d, 0x1ff
mov byte [rbp + 0x370], r13b
call sub.MSVCR100.dll_memset
mov word [rbp + 0x1060a], r13w
mov r15, r13
mov qword [rbp], r13
mov rbx, r12
cmp word [r12], r13w
je 0x140065cbf
mov esi, 0x7d
nop dword [rax]
mov word [rbp + 0x10608], r13w
movzx eax, word [rbx]
cmp eax, 0x7b
je 0x140065bae
cmp eax, esi
je 0x140065ca2
test dil, dil
je 0x140065b76
inc r15
mov qword [rbp], r15
jmp 0x140065ca2
mov byte [0x140143134], r13b
jmp case.0x140065989.43
mov byte [0x140143135], r14b
jmp case.0x140065989.43
mov byte [0x140143136], r14b
jmp case.0x140065989.43
mov byte [0x140143137], r14b
jmp case.0x140065989.43
mov rcx, r15
call qword [sym.imp.MSVCR100.dll__wtoi]
movzx edi, byte [rbp + 0x105f8]
mov edx, 0x3fff
mov dword [0x14014314c], eax
mov r12d, edx
cmp eax, edx
jle 0x140065a21
mov dword [0x14014314c], edx
jmp 0x140065a21
mov rcx, r15
call fcn.14002f9a0
mulsd xmm0, qword [0x1401279c8]
cvttsd2si eax, xmm0
mov dword [rbp + 0x10], eax
jmp case.0x140065989.43
mov byte [0x140143138], r14b
jmp case.0x140065989.43
mov byte [0x140143139], r14b
jmp case.0x140065989.43
movzx edi, r14b
mov byte [rbp + 0x105f8], r14b
jmp 0x140065a21
xor ecx, ecx
mov word [rbp + 0x10608], ax
mov byte [rbp + 0x10600], r13b
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea rdx, [rbp + 0x10600]
lea rcx, [rbp + 0x10608]
mov r9, rax
mov r8b, 1
call fcn.140023e00
movzx r15d, al
jmp 0x140065c56
lea rcx, [rbx + 2]
mov edx, esi
call qword [sym.imp.MSVCR100.dll_wcschr]
mov rdi, rax
test rax, rax
je 0x140065ca2
sub rax, rbx
sar rax, 1
dec rax
jne 0x140065be0
add rdi, 2
cmp word [rdi], si
jne 0x140065ca2
jmp 0x140065be6
cmp rax, 1
jne 0x140065c06
cmp byte [rbp + 0x105f8], r13b
je 0x140065bfb
inc r15
mov qword [rbp], r15
jmp 0x140065ca2
movzx eax, word [rbx + 2]
mov word [rbp + 0x10608], ax
xor ecx, ecx
mov word [rdi], r13w
mov byte [rbp + 0x10600], r13b
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea rdx, [rbp + 0x10600]
lea rcx, [rbx + 2]
mov r9, rax
mov r8b, 1
call fcn.140023e00
movzx r15d, al
test al, al
jne 0x140065c50
lea rcx, [rbx + 2]
call fcn.140023d00
test ax, ax
je 0x140065c50
movzx eax, ax
mov byte [rbp + rax + 0x370], 1
mov word [rdi], si
mov rbx, rdi
test r15b, r15b
je 0x140065c9e
movzx ecx, word [rbp + 0x10608]
movzx edi, r15b
or byte [rbp + rdi + 0x170], 1
test cx, cx
je 0x140065c9e
call qword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x140065c9e
test byte [rbp + 0x10600], 0x30
mov r15, qword [rbp]
je 0x140065c94
or byte [rbp + rdi + 0x170], 2
jmp 0x140065ca2
or byte [rbp + rdi + 0x170], 4
jmp 0x140065ca2
mov r15, qword [rbp]
movzx edi, byte [rbp + 0x105f8]
add rbx, 2
cmp word [rbx], r13w
jne 0x140065aa0
mov rsi, qword [rbp + 8]
mov r14, qword [rbp + 0x18]
lea rbx, [0x1401035ac]
mov qword [0x140143108], rbx
test r15, r15
je 0x140065d87
lea rax, [r15 + r15 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140065cee
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140100df0
sub rsp, rcx
lea rdi, [rsp + 0x40]
mov qword [0x140143108], rdi
cmp word [r12], r13w
je 0x140065d83
mov esi, 0x7d
movzx eax, word [r12]
cmp eax, 0x7b
je 0x140065d2c
cmp eax, esi
je 0x140065d6d
mov word [rdi], ax
add rdi, 2
jmp 0x140065d6d
lea rbx, [r12 + 2]
mov edx, esi
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_wcschr]
mov rdx, rax
test rax, rax
je 0x140065d6d
cmp rax, rbx
jne 0x140065d55
cmp word [rax + 2], si
lea rcx, [rax + 2]
cmove rdx, rcx
lea rax, [r12 + 4]
cmp rdx, rax
jne 0x140065d6a
movzx eax, word [rbx]
add rdi, 2
mov word [rdi - 2], ax
mov r12, rdx
add r12, 2
cmp word [r12], r13w
jne 0x140065d15
mov rsi, qword [rbp + 8]
lea rbx, [0x1401035ac]
mov word [rdi], r13w
mov edi, 3
mov dword [0x140143120], r13d
mov qword [rbp + 8], rdi
cmp word [r14], r13w
je 0x140065f78
cmp qword [0x140143118], r13
jne 0x140065de9
mov ecx, 0x2000
call qword [sym.imp.MSVCR100.dll_malloc]
mov qword [0x140143118], rax
test rax, rax
jne 0x140065ddf
mov rcx, qword [rbp + 0x105f0]
lea rdx, str.Out_of_memory.
mov r9, rbx
xor r8d, r8d
call fcn.14005f3f0
jmp 0x1400678b0
mov dword [0x140143124], 0x400
mov rbx, qword [rbp + 0x105f0]
mov edx, edi
mov rcx, rbx
call fcn.14004cbc0
mov ecx, dword [0x140143130]
lea rdx, [rax + 1]
cmp rdx, rcx
jbe 0x140065e6f
mov rcx, qword [0x140143128]
mov eax, 0x1000
cmp rdx, rax
cmova eax, edx
mov dword [0x140143130], eax
test rcx, rcx
je 0x140065e32
call qword [sym.imp.MSVCR100.dll_free]
mov eax, dword [0x140143130]
lea ecx, [rax + rax]
call qword [sym.imp.MSVCR100.dll_malloc]
mov rdx, rax
mov qword [0x140143128], rax
test rax, rax
jne 0x140065e76
mov dword [0x140143130], r13d
lea r9, [0x1401035ac]
lea rdx, str.Out_of_memory.
xor r8d, r8d
mov rcx, rbx
call fcn.14005f3f0
jmp 0x1400678b0
mov rdx, qword [0x140143128]
mov ecx, dword [0x140143120]
mov rax, qword [0x140143118]
mov qword [rax + rcx*8], rdx
mov rdi, qword [0x140143128]
cmp word [r14], r13w
je 0x140065f55
mov r12d, 0x2c
nop
movzx eax, word [r14]
cmp ax, r12w
je 0x140065eb6
mov word [rdi], ax
add rdi, 2
jmp 0x140065f47
cmp word [r14 + 2], r12w
jne 0x140065ecb
mov word [rdi], r12w
add rdi, 2
add r14, 2
jmp 0x140065f47
mov word [rdi], r13w
mov ecx, dword [0x140143120]
mov r8, qword [0x140143118]
mov rax, qword [r8 + rcx*8]
cmp word [rax], r13w
je 0x140065f09
inc ecx
add rdi, 2
mov dword [0x140143120], ecx
mov qword [r8 + rcx*8], rdi
mov word [rdi], r13w
mov r8, qword [0x140143118]
mov eax, ecx
mov ecx, dword [0x140143120]
cmp word [r14 + 2], r13w
je 0x140065f47
mov eax, dword [0x140143124]
cmp ecx, eax
jb 0x140065f47
lea edx, [rax + 0x400]
mov rcx, r8
shl rdx, 3
call qword [sym.imp.MSVCR100.dll_realloc]
test rax, rax
je 0x140065e51
add dword [0x140143124], 0x400
mov qword [0x140143118], rax
add r14, 2
cmp word [r14], r13w
jne 0x140065ea0
mov word [rdi], r13w
mov edx, dword [0x140143120]
mov rax, qword [0x140143118]
mov rcx, qword [rax + rdx*8]
cmp word [rcx], r13w
je 0x140065f78
inc edx
mov dword [0x140143120], edx
cmp byte [0x14013f885], r13b
mov edi, reloc.WSOCK32.dll_recv
je 0x140065fca
mov rcx, qword [0x14013f6f8]
lea edx, [rdi - 4]
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14013f885]
test eax, eax
cmovne ecx, r13d
mov byte [0x14013f885], cl
mov ecx, edi
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test dil, al
mov edi, 1
je 0x140065fcf
mov edx, edi
or ecx, 0xffffffff
call fcn.140001b80
jmp 0x140065fcf
mov edi, 1
cmp dword [0x140143148], r13d
lea rax, [rbp + 0x170]
mov dword [0x1401430f0], edi
mov qword [0x1401430f8], rax
lea rax, [rbp + 0x370]
lea rbx, [0x140141fa8]
mov qword [0x140143100], rax
jne 0x140066067
cmp byte [rsi + 0x23], r13b
jne 0x140066017
mov rcx, qword [rsi + 0x10]
xor r8d, r8d
xor edx, edx
call fcn.1400e74d0
jmp 0x140066067
movzx eax, byte [rsi + 0x21]
test al, 2
je 0x14006602d
mov rcx, qword [rsi]
and al, 0x3d
mov byte [rsi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
movzx ecx, byte [rsi + 0x20]
and byte [rsi + 0x21], 0x82
mov qword [rsi + 0x10], r13
dec ecx
je 0x14006605f
dec ecx
jne 0x140066067
cmp qword [rsi + 0x18], r13
je 0x140066067
mov rcx, qword [rsi + 8]
call qword [sym.imp.MSVCR100.dll_free]
and byte [rsi + 0x21], 0x7f
mov qword [rsi + 0x18], r13
mov qword [rsi + 8], rbx
jmp 0x140066067
mov rax, qword [rsi + 8]
mov word [rax], r13w
or byte [0x140140266], 1
cmp qword [0x14013f848], r13
mov byte [0x14013f880], 1
jne 0x14006608d
mov rax, qword [0x14013ccd8]
movzx ecx, word [rax]
call fcn.140015200
mov eax, dword [rbp + 0x10]
mov edx, 0xa
test eax, eax
jle 0x1400660d2
cmp byte [0x14013f885], r13b
jne 0x1400660d2
mov rcx, qword [0x14013f6f8]
cmp eax, edx
lea r9, [0x140004f10]
cmovl eax, edx
mov edx, reloc.WSOCK32.dll_ioctlsocket
mov r8d, eax
call qword [sym.imp.USER32.dll_SetTimer]
mov edx, 0xa
test rax, rax
setne byte [0x14013f885]
mov eax, dword gs:[0x48]
movsd xmm7, qword [0x1401279a8]
movsd xmm8, qword [0x1401279e0]
mov dword [rbp + 0x105f8], eax
mov r15d, 8
mov r12, qword [rbp + 0x105f8]
movsd xmm6, qword [0x1401279d8]
jmp 0x140066115
mov edi, 1
cmp dword [0x1401430c0], eax
jne 0x14006612b
mov edx, edi
mov ecx, 0x8000012f
call fcn.140001b80
jmp 0x140066133
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call fcn.140001830
or rcx, 0xffffffffffffffff
mov rbx, rax
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov eax, 0x3fff
not rcx
dec rcx
cmp ecx, eax
mov r14, rcx
mov rcx, rsi
cmovg r14d, eax
mov eax, 1
mov edx, eax
test r14d, r14d
cmovne edx, r14d
xor r8d, r8d
movsxd rdi, edx
mov edx, eax
call fcn.140001830
lea rcx, [rbp + 0x8570]
mov r8, rdi
mov rdx, rax
call qword [sym.imp.MSVCR100.dll_wcsncmp]
test eax, eax
jne 0x140066549
lea rax, [rbp + 0x8570]
lea rdi, [rbp + 0x570]
sub rdi, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + rdi]
sub edx, ecx
jne 0x1400661c3
add rax, 2
test ecx, ecx
jne 0x1400661b0
test edx, edx
jne 0x1400661f4
lea rdi, [rbp + 0x570]
sub rdi, rbx
movzx ecx, word [rbx]
movzx eax, word [rbx + rdi]
sub ecx, eax
jne 0x1400661e4
add rbx, 2
test eax, eax
jne 0x1400661d1
test ecx, ecx
jne 0x140066549
test edx, edx
je 0x14006659e
movzx edx, byte [rsi + 0x23]
test dl, dl
jne 0x14006621d
mov rcx, qword [rsi + 0x10]
lea rdx, [rbp + 0x570]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x1400664d7
lea rax, [rbp + 0x570]
cmp qword [rsi + 8], rax
jne 0x140066233
mov rbx, qword [rsi + 0x10]
shr rbx, 1
jmp 0x14006624a
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x570]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
lea rax, [rbx + 1]
lea rdi, [rax + rax]
cmp dl, 2
jne 0x14006626b
lea rcx, [rbp + 0x570]
mov rdx, rbx
call fcn.140006bc0
jmp 0x1400664d7
cmp rdi, qword [0x14013b0d0]
jbe 0x140066299
cmp rdi, qword [rsi + 0x18]
jbe 0x140066299
lea r8, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
call fcn.14005f7b0
jmp 0x1400664d7
cmp rax, 2
movzx eax, byte [rsi + 0x21]
jae 0x140066311
test al, 2
je 0x1400662b5
mov rcx, qword [rsi]
and al, 0x3d
mov byte [rsi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
movzx ecx, byte [rsi + 0x20]
and byte [rsi + 0x21], 0x82
mov qword [rsi + 0x10], r13
dec ecx
je 0x1400662e2
dec ecx
jne 0x1400664d7
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1400664d7
cmp rax, 0x1000
ja 0x1400662ef
mov rax, qword [rsi + 8]
mov word [rax], r13w
jmp 0x1400664d7
mov rcx, qword [rsi + 8]
call qword [sym.imp.MSVCR100.dll_free]
and byte [rsi + 0x21], 0x7f
lea rax, [0x140141fa8]
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], r13
jmp 0x1400664d7
test al, 2
je 0x140066323
mov rcx, qword [rsi]
and al, 0x3d
mov byte [rsi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsi + 0x18]
and byte [rsi + 0x21], 0x82
cmp rdi, rcx
jbe 0x1400664a5
movzx r8d, byte [rsi + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x140066353
cmp al, 2
je 0x14006639a
mov rax, qword [rbp + 0x10600]
jmp 0x140066499
cmp rdi, 0x80
ja 0x14006639a
cmp rdi, r15
ja 0x140066366
mov r12, r15
jmp 0x140066379
mov r12d, 0x80
cmp rdi, 0x10
mov eax, reloc.WSOCK32.dll_recv
cmovbe r12d, eax
mov rcx, r12
call fcn.1400dd290
mov qword [rbp + 0x10600], rax
test rax, rax
je 0x1400664d7
mov byte [rsi + 0x20], 1
jmp 0x140066499
cmp rdi, 0x20
jae 0x1400663ab
mov r12d, SafeArrayAllocDescriptor
jmp 0x14006644c
cmp rdi, 0x208
jae 0x1400663bf
mov r12d, 0x208
jmp 0x14006644c
cmp rdi, 0x50000
jae 0x140066408
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x1400663da
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x1400663fe
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400663fe
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si r12, xmm0
add r12, rax
jmp 0x14006644c
cmp rdi, 0x320000
jae 0x14006641a
lea r12, [rdi + 0x8000]
jmp 0x14006644c
cmp rdi, 0xc80000
jae 0x140066445
movabs rax, 0x47ae147ae147ae15
mov r12, rdi
mul rdi
sub r12, rdx
shr r12, 1
add r12, rdx
shr r12, 6
add r12, rdi
jmp 0x14006644c
lea r12, [rdi + 0x20000]
mov rax, qword [0x14013b0d0]
cmp r12, rax
cmova r12, rax
cmp r8b, 2
jne 0x140066474
test rcx, rcx
je 0x140066474
mov rcx, qword [rsi + 8]
mov dil, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140066477
xor dil, dil
test r12, r12
js 0x140066501
mov rcx, r12
call qword [sym.imp.MSVCR100.dll_malloc]
mov qword [rbp + 0x10600], rax
test rax, rax
je 0x140066501
mov byte [rsi + 0x20], 2
and byte [rsi + 0x21], 0x7f
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], r12
mov rcx, qword [rsi + 8]
lea rax, [rbp + 0x570]
cmp rcx, rax
je 0x1400664c6
lea r8, [rbx + rbx]
lea rdx, [rbp + 0x570]
call qword [sym.imp.MSVCR100.dll_memmove]
mov rax, qword [rsi + 8]
lea rcx, [rbx + rbx]
mov word [rcx + rax], r13w
mov qword [rsi + 0x10], rcx
cmp dword [0x140143148], r13d
je 0x14006653f
mov rcx, r13
movzx eax, word [rbp + rcx + 0x570]
add rcx, 2
mov word [rbp + rcx + 0x856e], ax
test ax, ax
jne 0x1400664e3
jmp 0x14006659e
test dil, dil
je 0x140066517
lea rax, [0x140141fa8]
mov qword [rsi + 0x18], r13
mov qword [rsi + 8], rax
jmp 0x14006651f
mov rax, qword [rsi + 8]
mov word [rax], r13w
lea r8, [0x1401035ac]
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov qword [rsi + 0x10], r13
call fcn.14005f7b0
jmp 0x1400664d7
mov word [rbp + 0x8570], r13w
jmp 0x14006659e
xor r8d, r8d
mov rcx, rsi
mov dword [0x140143148], r14d
lea edx, [r8 + 1]
movsxd rdi, r14d
call fcn.140001830
lea rcx, [rbp + 0x570]
mov r8, rdi
mov rdx, rax
call qword [sym.imp.MSVCR100.dll_wcsncpy]
lea rdx, [rbp + 0x570]
lea rcx, [rbp + 0x8570]
mov r8, rdi
mov word [rbp + rdi*2 + 0x570], r13w
call qword [sym.imp.MSVCR100.dll_wcsncpy]
mov word [rbp + rdi*2 + 0x8570], r13w
mov ecx, dword [0x1401430f0]
mov eax, dword [rbp + 0x105f8]
mov edx, 0xa
cmp ecx, 1
je 0x140066110
sub ecx, 2
je 0x140066fce
dec ecx
je 0x140066ddd
dec ecx
je 0x140066928
dec ecx
mov rdi, qword [0x140140268]
movzx eax, byte [rdi + 0x23]
je 0x1400666f5
test al, al
jne 0x140066609
mov rcx, qword [rdi + 0x10]
lea rdx, str.NewInput
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x140067210
lea r15, str.NewInput
cmp qword [rdi + 8], r15
jne 0x14006661f
mov r14, qword [rdi + 0x10]
shr r14, 1
jmp 0x140066625
mov r14d, 8
lea rcx, [r14 + 1]
lea r12, [rcx + rcx]
cmp al, 2
jne 0x140066641
mov rdx, r14
mov rcx, r15
call fcn.140006bc0
jmp 0x140067210
cmp r12, qword [0x14013b0d0]
jbe 0x140066672
cmp r12, qword [rdi + 0x18]
jbe 0x140066672
lea r15, [0x1401035ac]
lea rdx, [0x140124720]
lea rcx, [0x140143150]
mov r8, r15
call fcn.14005f7b0
jmp 0x140067217
movzx eax, byte [rdi + 0x21]
cmp rcx, 2
jae 0x140067057
test al, 2
je 0x140066692
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
movzx ecx, byte [rdi + 0x20]
and byte [rdi + 0x21], 0x82
mov qword [rdi + 0x10], r13
dec ecx
je 0x1400666bf
dec ecx
jne 0x140067210
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140067210
cmp rax, 0x1000
ja 0x1400666cc
mov rax, qword [rdi + 8]
mov word [rax], r13w
jmp 0x140067210
mov rcx, qword [rdi + 8]
call qword [sym.imp.MSVCR100.dll_free]
and byte [rdi + 0x21], 0x7f
lea r12, [0x140141fa8]
mov qword [rdi + 8], r12
mov qword [rdi + 0x18], r13
lea r15, [0x1401035ac]
jmp 0x14006721e
test al, al
jne 0x14006671a
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14011cc18]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x140067210
lea r14, [0x14011cc18]
cmp qword [rdi + 8], r14
jne 0x140066734
mov rbx, qword [rdi + 0x10]
shr rbx, 1
mov qword [rbp + 8], rbx
jmp 0x140066739
mov ebx, 3
lea rcx, [rbx + 1]
lea r12, [rcx + rcx]
cmp al, 2
jne 0x140066755
mov rdx, rbx
mov rcx, r14
call fcn.140006bc0
jmp 0x140067210
cmp r12, qword [0x14013b0d0]
jbe 0x140066768
cmp r12, qword [rdi + 0x18]
ja 0x140066650
movzx eax, byte [rdi + 0x21]
cmp rcx, 2
jb 0x140066680
test al, 2
je 0x140066788
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 [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp r12, rcx
jbe 0x140066909
movzx r8d, byte [rdi + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x1400667bf
cmp al, 2
je 0x1400667fd
mov rbx, qword [rbp + 0x105f8]
mov rax, qword [rbp + 0x105f8]
jmp 0x1400668f9
cmp r12, 0x80
ja 0x1400667fd
cmp r12, r15
ja 0x1400667d2
mov rbx, r15
jmp 0x1400667e3
mov ebx, 0x80
cmp r12, 0x10
mov eax, reloc.WSOCK32.dll_recv
cmovbe ebx, eax
mov rcx, rbx
call fcn.1400dd290
test rax, rax
je 0x140067210
mov byte [rdi + 0x20], 1
jmp 0x1400668f9
cmp r12, 0x20
jae 0x14006680d
mov ebx, SafeArrayAllocDescriptor
jmp 0x1400668af
cmp r12, 0x208
jae 0x140066820
mov ebx, 0x208
jmp 0x1400668af
cmp r12, 0x50000
jae 0x140066869
pxor xmm0, xmm0
cvtsi2sd xmm0, r12
test r12, r12
jns 0x14006683b
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x14006685f
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x14006685f
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rbx, xmm0
add rbx, rax
jmp 0x1400668af
cmp r12, 0x320000
jae 0x14006687c
lea rbx, [r12 + 0x8000]
jmp 0x1400668af
cmp r12, 0xc80000
jae 0x1400668a7
movabs rax, 0x47ae147ae147ae15
mov rbx, r12
mul r12
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r12
jmp 0x1400668af
lea rbx, [r12 + 0x20000]
mov rax, qword [0x14013b0d0]
cmp rbx, rax
cmova rbx, rax
cmp r8b, 2
jne 0x1400668d7
test rcx, rcx
je 0x1400668d7
mov rcx, qword [rdi + 8]
mov r12b, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x1400668da
xor r12b, r12b
test rbx, rbx
js 0x140066fb1
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x140066fb1
mov byte [rdi + 0x20], 2
and byte [rdi + 0x21], 0x7f
mov qword [rdi + 0x18], rbx
mov rbx, qword [rbp + 8]
mov qword [rdi + 8], rax
mov rcx, qword [rdi + 8]
cmp rcx, r14
je 0x14006691f
lea r8, [rbx + rbx]
mov rdx, r14
call qword [sym.imp.MSVCR100.dll_memmove]
lea rcx, [rbx + rbx]
jmp 0x140067203
movups xmm0, xmmword [str.EndKey:]
lea rcx, [rbp + 0x30]
xor edx, edx
mov r8d, 0xf0
movaps xmmword [rbp + 0x20], xmm0
call sub.MSVCR100.dll_memset
movzx edx, word [0x140143114]
test dx, dx
je 0x14006695e
mov word [rbp + 0x2e], dx
mov word [rbp + 0x30], r13w
jmp 0x140066af3
cmp byte [0x140143117], r13b
je 0x140066a3a
lea rcx, [rbp + 0x271]
xor edx, edx
mov r8d, 0xff
mov byte [rbp + 0x270], r13b
call sub.MSVCR100.dll_memset
or byte [rbp + 0x280], 0x80
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, r13d
test rax, rax
je 0x1400669db
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rbp + 0x120]
mov dword [rbp + 0x120], 0x48
mov ecx, eax
mov edi, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x1400669db
mov rcx, qword [rbp + 0x130]
test rcx, rcx
je 0x1400669db
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, byte [0x140143110]
mov ebx, r13d
cmp dword [0x14013f8d0], ebx
mov rdi, rax
setne bl
xor edx, edx
call fcn.1400244f0
movzx ecx, byte [0x140143110]
mov qword [rsp + 0x30], rdi
lea r9, [rbp + 0x2e]
lea r8, [rbp + 0x270]
movzx edx, ax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movsxd rcx, eax
mov word [rbp + rcx*2 + 0x2e], r13w
jmp 0x140066af3
cmp byte [0x140143116], r13b
je 0x140066aba
movzx edx, word [0x140143112]
mov ecx, r13d
lea rax, [0x14013ca28]
lea rdi, [0x14013caf8]
nop dword [rax + rax]
cmp word [rax], dx
je 0x140066a8b
add rax, 0x10
inc ecx
cmp rax, rdi
jl 0x140066a60
movzx r9d, dx
lea r8, str.sc_03X
lea rcx, [rbp + 0x2e]
mov edx, 0x79
call fcn.1400e0640
jmp 0x140066ad3
movsxd rdx, ecx
lea rax, [0x140000000]
lea rcx, [rbp + 0x2e]
add rdx, rdx
mov r8d, 0x78
mov rdx, qword [rax + rdx*8 + 0x13ca20]
call qword [sym.imp.MSVCR100.dll_wcsncpy]
mov word [rbp + 0x11e], r13w
jmp 0x140066ad3
movzx ecx, byte [0x140143110]
lea rdx, [rbp + 0x2e]
mov r9b, 1
mov r8d, 0x79
call fcn.140023a90
movzx ecx, word [rbp + 0x2e]
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140066af3
cmp word [rbp + 0x30], r13w
jne 0x140066af3
mov eax, 0xffe0
add cx, ax
mov word [rbp + 0x2e], cx
mov rbx, qword [0x140140268]
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x140066b20
mov rcx, qword [rbx + 0x10]
lea rdx, [rbp + 0x20]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x140067210
lea rax, [rbp + 0x20]
cmp qword [rbx + 8], rax
jne 0x140066b33
mov r14, qword [rbx + 0x10]
shr r14, 1
jmp 0x140066b47
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x20]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
lea rax, [r14 + 1]
lea r12, [rax + rax]
cmp dl, 2
jne 0x140066b65
lea rcx, [rbp + 0x20]
mov rdx, r14
call fcn.140006bc0
jmp 0x140067210
cmp r12, qword [0x14013b0d0]
jbe 0x140066b78
cmp r12, qword [rbx + 0x18]
ja 0x140066650
cmp rax, 2
movzx eax, byte [rbx + 0x21]
jae 0x140066bf7
test al, 2
je 0x140066b94
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
movzx ecx, byte [rbx + 0x20]
and byte [rbx + 0x21], 0x82
mov qword [rbx + 0x10], r13
dec ecx
je 0x140066bc1
dec ecx
jne 0x140067210
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x140067210
cmp rax, 0x1000
ja 0x140066bce
mov rax, qword [rbx + 8]
mov word [rax], r13w
jmp 0x140067210
mov rcx, qword [rbx + 8]
call qword [sym.imp.MSVCR100.dll_free]
and byte [rbx + 0x21], 0x7f
lea r12, [0x140141fa8]
mov qword [rbx + 8], r12
mov qword [rbx + 0x18], r13
lea r15, [0x1401035ac]
jmp 0x14006721e
test al, 2
je 0x140066c09
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp r12, rcx
jbe 0x140066d7e
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x140066c40
cmp al, 2
je 0x140066c7e
mov rdi, qword [rbp + 0x105f8]
mov rax, qword [rbp + 0x105f8]
jmp 0x140066d72
cmp r12, 0x80
ja 0x140066c7e
cmp r12, r15
ja 0x140066c53
mov rdi, r15
jmp 0x140066c64
mov edi, 0x80
cmp r12, 0x10
mov eax, reloc.WSOCK32.dll_recv
cmovbe edi, eax
mov rcx, rdi
call fcn.1400dd290
test rax, rax
je 0x140067210
mov byte [rbx + 0x20], 1
jmp 0x140066d72
cmp r12, 0x20
jae 0x140066c8e
mov edi, SafeArrayAllocDescriptor
jmp 0x140066d30
cmp r12, 0x208
jae 0x140066ca1
mov edi, 0x208
jmp 0x140066d30
cmp r12, 0x50000
jae 0x140066cea
pxor xmm0, xmm0
cvtsi2sd xmm0, r12
test r12, r12
jns 0x140066cbc
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x140066ce0
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140066ce0
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140066d30
cmp r12, 0x320000
jae 0x140066cfd
lea rdi, [r12 + 0x8000]
jmp 0x140066d30
cmp r12, 0xc80000
jae 0x140066d28
movabs rax, 0x47ae147ae147ae15
mov rdi, r12
mul r12
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, r12
jmp 0x140066d30
lea rdi, [r12 + 0x20000]
mov rax, qword [0x14013b0d0]
cmp rdi, rax
cmova rdi, rax
cmp r8b, 2
jne 0x140066d58
test rcx, rcx
je 0x140066d58
mov rcx, qword [rbx + 8]
mov r12b, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140066d5b
xor r12b, r12b
test rdi, rdi
js 0x140066daf
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x140066daf
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
lea rax, [rbp + 0x20]
cmp rcx, rax
je 0x140066d99
lea r8, [r14 + r14]
lea rdx, [rbp + 0x20]
call qword [sym.imp.MSVCR100.dll_memmove]
mov rax, qword [rbx + 8]
lea rcx, [r14 + r14]
mov word [rcx + rax], r13w
mov qword [rbx + 0x10], rcx
jmp 0x140067210
test r12b, r12b
lea r12, [0x140141fa8]
je 0x140066dcc
mov qword [rbx + 0x18], r13
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r13
jmp 0x140067284
mov rax, qword [rbx + 8]
mov word [rax], r13w
mov qword [rbx + 0x10], r13
jmp 0x140067284
mov rdi, qword [0x140140268]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x140066e0d
mov rcx, qword [rdi + 0x10]
lea rdx, str.Match
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x140067210
lea r15, str.Match
cmp qword [rdi + 8], r15
jne 0x140066e23
mov r14, qword [rdi + 0x10]
shr r14, 1
jmp 0x140066e29
mov r14d, 5
lea rcx, [r14 + 1]
lea r12, [rcx + rcx]
cmp al, 2
jne 0x140066e45
mov rdx, r14
mov rcx, r15
call fcn.140006bc0
jmp 0x140067210
cmp r12, qword [0x14013b0d0]
jbe 0x140066e58
cmp r12, qword [rdi + 0x18]
ja 0x140066650
movzx eax, byte [rdi + 0x21]
cmp rcx, 2
jb 0x140066680
test al, 2
je 0x140066e78
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 [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp r12, rcx
jbe 0x1400671e9
movzx r8d, byte [rdi + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x140066eb0
cmp al, 2
jne 0x14006708d
cmp r12, 0x20
jae 0x140066ecd
mov ebx, SafeArrayAllocDescriptor
jmp 0x140066f6f
cmp r12, 0x80
ja 0x140066ea0
cmp r12, 8
ja 0x1400670b6
mov ebx, 8
jmp 0x1400670c7
cmp r12, 0x208
jae 0x140066ee0
mov ebx, 0x208
jmp 0x140066f6f
cmp r12, 0x50000
jae 0x140066f29
pxor xmm0, xmm0
cvtsi2sd xmm0, r12
test r12, r12
jns 0x140066efb
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x140066f1f
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140066f1f
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rbx, xmm0
add rbx, rax
jmp 0x140066f6f
cmp r12, 0x320000
jae 0x140066f3c
lea rbx, [r12 + 0x8000]
jmp 0x140066f6f
cmp r12, 0xc80000
jae 0x140066f67
movabs rax, 0x47ae147ae147ae15
mov rbx, r12
mul r12
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r12
jmp 0x140066f6f
lea rbx, [r12 + 0x20000]
mov rax, qword [0x14013b0d0]
cmp rbx, rax
cmova rbx, rax
cmp r8b, 2
jne 0x140066f97
test rcx, rcx
je 0x140066f97
mov rcx, qword [rdi + 8]
mov r12b, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x140066f9a
xor r12b, r12b
test rbx, rbx
js 0x140066fb1
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
jne 0x1400671d9
test r12b, r12b
lea r12, [0x140141fa8]
je 0x140067278
mov qword [rdi + 0x18], r13
mov qword [rdi + 8], r12
jmp 0x140067280
mov rdi, qword [0x140140268]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x140066ffe
mov rcx, qword [rdi + 0x10]
lea rdx, str.Timeout
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x140067210
lea r15, str.Timeout
cmp qword [rdi + 8], r15
jne 0x140067014
mov r14, qword [rdi + 0x10]
shr r14, 1
jmp 0x14006701a
mov r14d, 7
lea rcx, [r14 + 1]
lea r12, [rcx + rcx]
cmp al, 2
jne 0x140067036
mov rdx, r14
mov rcx, r15
call fcn.140006bc0
jmp 0x140067210
cmp r12, qword [0x14013b0d0]
jbe 0x140067049
cmp r12, qword [rdi + 0x18]
ja 0x140066650
movzx eax, byte [rdi + 0x21]
cmp rcx, 2
jb 0x140066680
test al, 2
je 0x140067069
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 [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp r12, rcx
jbe 0x1400671e9
movzx r8d, byte [rdi + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x1400670a0
cmp al, 2
je 0x1400670e1
mov rbx, qword [rbp + 0x105f8]
mov rax, qword [rbp + 0x105f8]
jmp 0x1400671dd
cmp r12, 0x80
ja 0x1400670e1
cmp r12, 8
ja 0x1400670b6
mov ebx, 8
jmp 0x1400670c7
mov ebx, 0x80
cmp r12, 0x10
mov eax, reloc.WSOCK32.dll_recv
cmovbe ebx, eax
mov rcx, rbx
call fcn.1400dd290
test rax, rax
je 0x140067210
mov byte [rdi + 0x20], 1
jmp 0x1400671dd
cmp r12, 0x20
jae 0x1400670f1
mov ebx, SafeArrayAllocDescriptor
jmp 0x140067193
cmp r12, 0x208
jae 0x140067104
mov ebx, 0x208
jmp 0x140067193
cmp r12, 0x50000
jae 0x14006714d
pxor xmm0, xmm0
cvtsi2sd xmm0, r12
test r12, r12
jns 0x14006711f
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x140067143
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140067143
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rbx, xmm0
add rbx, rax
jmp 0x140067193
cmp r12, 0x320000
jae 0x140067160
lea rbx, [r12 + 0x8000]
jmp 0x140067193
cmp r12, 0xc80000
jae 0x14006718b
movabs rax, 0x47ae147ae147ae15
mov rbx, r12
mul r12
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
add rbx, r12
jmp 0x140067193
lea rbx, [r12 + 0x20000]
mov rax, qword [0x14013b0d0]
cmp rbx, rax
cmova rbx, rax
cmp r8b, 2
jne 0x1400671bb
test rcx, rcx
je 0x1400671bb
mov rcx, qword [rdi + 8]
mov r12b, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x1400671be
xor r12b, r12b
test rbx, rbx
js 0x140066fb1
mov rcx, rbx
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x140066fb1
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, r15
je 0x1400671ff
lea r8, [r14 + r14]
mov rdx, r15
call qword [sym.imp.MSVCR100.dll_memmove]
lea rcx, [r14 + r14]
mov rax, qword [rdi + 8]
mov word [rcx + rax], r13w
mov qword [rdi + 0x10], rcx
lea r15, [0x1401035ac]
lea r12, [0x140141fa8]
cmp byte [0x14013f885], r13b
mov dword [0x1401430f0], r13d
je 0x1400672a6
mov rcx, qword [0x14013f6f8]
mov edx, reloc.WSOCK32.dll_ioctlsocket
call qword [sym.imp.USER32.dll_KillTimer]
movzx ecx, byte [0x14013f885]
test eax, eax
cmovne ecx, r13d
mov byte [0x14013f885], cl
mov ecx, reloc.WSOCK32.dll_recv
call qword [sym.imp.USER32.dll_GetQueueStatus]
mov r14d, 1
shr eax, 0x10
test al, 0x10
je 0x1400672ac
mov edx, r14d
or ecx, 0xffffffff
call fcn.140001b80
jmp 0x1400672ac
mov rax, qword [rdi + 8]
mov word [rax], r13w
mov qword [rdi + 0x10], r13
lea r15, [0x1401035ac]
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov r8, r15
call fcn.14005f7b0
jmp 0x14006721e
mov r14d, 1
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x570]
repne scasw ax, word [rdi]
not rcx
dec rcx
jne 0x1400675cb
movzx ecx, byte [rsi + 0x23]
test cl, cl
jne 0x1400672d6
mov rax, qword [rsi + 0x10]
jmp 0x1400672d9
mov rax, rsi
cmp byte [rax + 0x23], 2
jne 0x1400672e7
mov eax, dword [0x140143df8]
jmp 0x1400672eb
mov rax, qword [rax + 0x18]
test rax, 0xfffffffffffffffe
je 0x1400675cb
test cl, cl
jne 0x140067318
mov rcx, qword [rsi + 0x10]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov rdx, r15
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x1400678ad
cmp qword [rsi + 8], r15
jne 0x140067327
mov rbx, qword [rsi + 0x10]
shr rbx, 1
jmp 0x14006732a
mov rbx, r13
lea rax, [rbx + 1]
lea rdi, [rax + rax]
cmp cl, 2
jne 0x140067347
mov rdx, rbx
mov rcx, r15
call fcn.140006bc0
jmp 0x1400678ad
cmp rdi, qword [0x14013b0d0]
jbe 0x140067371
cmp rdi, qword [rsi + 0x18]
jbe 0x140067371
lea rdx, [0x140124720]
lea rcx, [0x140143150]
mov r8, r15
call fcn.14005f7b0
jmp 0x1400678ad
cmp rax, 2
movzx eax, byte [rsi + 0x21]
jae 0x1400673e2
test al, 2
je 0x14006738d
mov rcx, qword [rsi]
and al, 0x3d
mov byte [rsi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
movzx ecx, byte [rsi + 0x20]
and byte [rsi + 0x21], 0x82
mov qword [rsi + 0x10], r13
dec ecx
je 0x1400673d5
dec ecx
jne 0x1400678ad
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1400678ad
cmp rax, 0x1000
jbe 0x1400673d5
mov rcx, qword [rsi + 8]
call qword [sym.imp.MSVCR100.dll_free]
and byte [rsi + 0x21], 0x7f
mov qword [rsi + 0x18], r13
mov qword [rsi + 8], r12
jmp 0x1400678ad
mov rax, qword [rsi + 8]
mov word [rax], r13w
jmp 0x1400678ad
test al, 2
je 0x1400673f4
mov rcx, qword [rsi]
and al, 0x3d
mov byte [rsi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsi + 0x18]
and byte [rsi + 0x21], 0x82
cmp rdi, rcx
jbe 0x14006756f
movzx r8d, byte [rsi + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x14006742b
cmp al, 2
je 0x14006746f
mov r12, qword [rbp + 0x105f8]
mov rax, qword [rbp + 0x105f8]
jmp 0x140067563
cmp rdi, 0x80
ja 0x14006746f
cmp rdi, 8
ja 0x140067442
mov r12d, 8
jmp 0x140067455
mov r12d, 0x80
cmp rdi, 0x10
mov eax, reloc.WSOCK32.dll_recv
cmovbe r12d, eax
mov rcx, r12
call fcn.1400dd290
test rax, rax
je 0x1400678ad
mov byte [rsi + 0x20], 1
jmp 0x140067563
cmp rdi, 0x20
jae 0x140067480
mov r12d, SafeArrayAllocDescriptor
jmp 0x140067521
cmp rdi, 0x208
jae 0x140067494
mov r12d, 0x208
jmp 0x140067521
cmp rdi, 0x50000
jae 0x1400674dd
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x1400674af
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x1400674d3
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400674d3
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si r12, xmm0
add r12, rax
jmp 0x140067521
cmp rdi, 0x320000
jae 0x1400674ef
lea r12, [rdi + 0x8000]
jmp 0x140067521
cmp rdi, 0xc80000
jae 0x14006751a
movabs rax, 0x47ae147ae147ae15
mov r12, rdi
mul rdi
sub r12, rdx
shr r12, 1
add r12, rdx
shr r12, 6
add r12, rdi
jmp 0x140067521
lea r12, [rdi + 0x20000]
mov rax, qword [0x14013b0d0]
cmp r12, rax
cmova r12, rax
cmp r8b, 2
jne 0x140067549
test rcx, rcx
je 0x140067549
mov rcx, qword [rsi + 8]
mov dil, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x14006754c
xor dil, dil
test r12, r12
js 0x14006758e
mov rcx, r12
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x14006758e
mov byte [rsi + 0x20], 2
and byte [rsi + 0x21], 0x7f
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], r12
mov rcx, qword [rsi + 8]
cmp rcx, r15
je 0x14006789c
lea r8, [rbx + rbx]
mov rdx, r15
call qword [sym.imp.MSVCR100.dll_memmove]
jmp 0x14006789c
test dil, dil
je 0x1400675a4
lea rax, [0x140141fa8]
mov qword [rsi + 0x18], r13
mov qword [rsi + 8], rax
jmp 0x1400675ac
mov rax, qword [rsi + 8]
mov word [rax], r13w
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov r8, r15
mov qword [rsi + 0x10], r13
call fcn.14005f7b0
jmp 0x1400678ad
movzx edx, byte [rsi + 0x23]
test dl, dl
jne 0x1400675f4
mov rcx, qword [rsi + 0x10]
lea rdx, [rbp + 0x570]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e6e20
jmp 0x1400678b0
lea rax, [rbp + 0x570]
cmp qword [rsi + 8], rax
jne 0x14006760a
mov rbx, qword [rsi + 0x10]
shr rbx, 1
jmp 0x140067621
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x570]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
lea rax, [rbx + 1]
lea rdi, [rax + rax]
cmp dl, 2
jne 0x140067642
lea rcx, [rbp + 0x570]
mov rdx, rbx
call fcn.140006bc0
jmp 0x1400678b0
cmp rdi, qword [0x14013b0d0]
jbe 0x14006766c
cmp rdi, qword [rsi + 0x18]
jbe 0x14006766c
lea rdx, [0x140124720]
lea rcx, [0x140143150]
mov r8, r15
call fcn.14005f7b0
jmp 0x1400678b0
cmp rax, 2
movzx eax, byte [rsi + 0x21]
jae 0x1400676df
test al, 2
je 0x140067688
mov rcx, qword [rsi]
and al, 0x3d
mov byte [rsi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
movzx ecx, byte [rsi + 0x20]
and byte [rsi + 0x21], 0x82
mov qword [rsi + 0x10], r13
dec ecx
je 0x1400676cd
dec ecx
jne 0x1400676d5
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1400676d5
cmp rax, 0x1000
jbe 0x1400676cd
mov rcx, qword [rsi + 8]
call qword [sym.imp.MSVCR100.dll_free]
and byte [rsi + 0x21], 0x7f
mov qword [rsi + 0x18], r13
mov qword [rsi + 8], r12
mov eax, 1
jmp 0x1400678b0
mov rax, qword [rsi + 8]
mov word [rax], r13w
mov eax, 1
jmp 0x1400678b0
test al, 2
je 0x1400676f1
mov rcx, qword [rsi]
and al, 0x3d
mov byte [rsi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov rcx, qword [rsi + 0x18]
and byte [rsi + 0x21], 0x82
cmp rdi, rcx
jbe 0x140067874
movzx r8d, byte [rsi + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x140067728
cmp al, 2
je 0x140067770
mov r12, qword [rbp + 0x105f8]
mov rax, qword [rbp + 0x105f8]
jmp 0x140067868
cmp rdi, 0x80
ja 0x140067770
cmp rdi, 8
ja 0x14006773f
mov r12d, 8
jmp 0x140067752
mov r12d, 0x80
cmp rdi, 0x10
mov eax, reloc.WSOCK32.dll_recv
cmovbe r12d, eax
mov rcx, r12
call fcn.1400dd290
test rax, rax
jne 0x140067767
mov eax, r13d
jmp 0x1400678b0
mov byte [rsi + 0x20], 1
jmp 0x140067868
cmp rdi, 0x20
jae 0x140067781
mov r12d, SafeArrayAllocDescriptor
jmp 0x140067822
cmp rdi, 0x208
jae 0x140067795
mov r12d, 0x208
jmp 0x140067822
cmp rdi, 0x50000
jae 0x1400677de
pxor xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x1400677b0
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x1400677d4
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400677d4
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si r12, xmm0
add r12, rax
jmp 0x140067822
cmp rdi, 0x320000
jae 0x1400677f0
lea r12, [rdi + 0x8000]
jmp 0x140067822
cmp rdi, 0xc80000
jae 0x14006781b
movabs rax, 0x47ae147ae147ae15
mov r12, rdi
mul rdi
sub r12, rdx
shr r12, 1
add r12, rdx
shr r12, 6
add r12, rdi
jmp 0x140067822
lea r12, [rdi + 0x20000]
mov rax, qword [0x14013b0d0]
cmp r12, rax
cmova r12, rax
cmp r8b, 2
jne 0x14006784a
test rcx, rcx
je 0x14006784a
mov rcx, qword [rsi + 8]
mov dil, 1
call qword [sym.imp.MSVCR100.dll_free]
jmp 0x14006784d
xor dil, dil
test r12, r12
js 0x1400678da
mov rcx, r12
call qword [sym.imp.MSVCR100.dll_malloc]
test rax, rax
je 0x1400678da
mov byte [rsi + 0x20], 2
and byte [rsi + 0x21], 0x7f
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], r12
mov rcx, qword [rsi + 8]
lea rax, [rbp + 0x570]
cmp rcx, rax
je 0x140067895
lea r8, [rbx + rbx]
lea rdx, [rbp + 0x570]
call qword [sym.imp.MSVCR100.dll_memmove]
mov dword [rbp + 0x105f8], r14d
mov rax, qword [rsi + 8]
lea rcx, [rbx + rbx]
mov word [rcx + rax], r13w
mov qword [rsi + 0x10], rcx
mov eax, r14d
movaps xmm6, xmmword [rbp + 0x10590]
movaps xmm7, xmmword [rbp + 0x10580]
movaps xmm8, xmmword [rbp + 0x10570]
lea rsp, [rbp + 0x105a8]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test dil, dil
je 0x1400678f0
lea rax, [0x140141fa8]
mov qword [rsi + 0x18], r13
mov qword [rsi + 8], rax
jmp 0x1400678f8
mov rax, qword [rsi + 8]
mov word [rax], r13w
lea rdx, str.Out_of_memory.
lea rcx, [0x140143150]
mov r8, r15
mov qword [rsi + 0x10], r13
call fcn.14005f7b0
jmp 0x1400678b0