Function at 0x1400399d0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
xor r14d, r14d
mov r11, rdx
mov qword [rsp + 0x50], r14
mov rbx, rcx
mov qword [rsp + 0x58], r14
mov rax, rcx
test rcx, rcx
je 0x140039a12
cmp dword [rax + 8], 0x25
je 0x140039a8f
mov rax, qword [rax]
test rax, rax
jne 0x140039a00
mov dword [rsp + 0xd0], r14d
mov rax, rbx
test rbx, rbx
je 0x140039a30
cmp dword [rax + 8], 0x25
je 0x140039a9e
mov rax, qword [rax]
test rax, rax
jne 0x140039a22
mov rdx, r14
mov rax, rbx
mov qword [rsp + 0x40], rdx
test rbx, rbx
je 0x140039a4e
cmp dword [rax + 8], 0x47
je 0x140039aac
mov rax, qword [rax]
test rax, rax
jne 0x140039a40
mov qword [rsp + 0xc0], r14
mov rcx, r14
mov qword [rsp + 0x48], rcx
mov rax, rbx
test rbx, rbx
je 0x140039a74
cmp dword [rax + 8], 0x5b
je 0x140039aba
mov rax, qword [rax]
test rax, rax
jne 0x140039a66
mov dword [rsp + 0xc0], r14d
cmp rdx, 0x11
je 0x140039ac6
mov dword [rsp + 0xd8], 0xc
jmp 0x140039aea
mov ecx, dword [rax + 0x10]
mov rax, rbx
mov dword [rsp + 0xd0], ecx
jmp 0x140039a22
mov rdx, qword [rax + 0x10]
mov rax, rbx
mov qword [rsp + 0x40], rdx
jmp 0x140039a40
mov rcx, qword [rax + 0x10]
mov rax, rbx
mov qword [rsp + 0x48], rcx
jmp 0x140039a66
mov eax, dword [rax + 0x10]
mov dword [rsp + 0xc0], eax
jmp 0x140039a7c
mov rax, rbx
test rbx, rbx
je 0x140039ae2
nop
cmp dword [rax + 8], 0x5a
je 0x140039b68
mov rax, qword [rax]
test rax, rax
jne 0x140039ad0
mov dword [rsp + 0xd8], r14d
mov rax, rbx
test rbx, rbx
je 0x140039b07
cmp dword [rax + 8], 0xa5
je 0x140039b7f
mov rax, qword [rax]
test rax, rax
jne 0x140039af2
mov dword [rsp + 0x30], r14d
mov rax, rbx
mov r13d, r14d
test rbx, rbx
je 0x140039b28
cmp dword [rax + 8], 0xa6
je 0x140039b8d
mov rax, qword [rax]
test rax, rax
jne 0x140039b17
mov r15d, r14d
mov rax, rbx
mov edi, r14d
test rbx, rbx
je 0x140039b44
cmp dword [rax + 8], 0x4c
je 0x140039b98
mov rax, qword [rax]
test rax, rax
jne 0x140039b36
mov qword [rsp + 0x38], r14
cmp rdx, 0x11
je 0x140039ba3
mov edx, ecx
lea rcx, [rsp + 0x60]
call fcn.1400377c0
mov r11, qword [rsp + 0xc8]
mov rsi, rax
jmp 0x140039bb1
mov edx, dword [rax + 0x10]
mov rax, rbx
mov dword [rsp + 0xd8], edx
mov rdx, qword [rsp + 0x40]
jmp 0x140039af2
mov r13d, dword [rax + 0x10]
mov rax, rbx
mov dword [rsp + 0x30], r13d
jmp 0x140039b17
mov edi, dword [rax + 0x10]
mov r15d, edi
mov rax, rbx
jmp 0x140039b36
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
jmp 0x140039b49
test rcx, rcx
lea rsi, [0x14005fc85]
cmovne rsi, rcx
mov r12, 0xffffffffffffffff
nop dword [rax + rax]
inc r12
cmp byte [rsi + r12], r14b
jne 0x140039bc0
cmp r13d, r12d
mov ebp, r12d
mov r13d, r12d
cmovle ebp, dword [rsp + 0x30]
cmp edi, r12d
cmovle r13d, r15d
mov r15d, dword [rsp + 0xd0]
lea eax, [r15 - 0xf]
test eax, 0xfffffffd
jne 0x140039c0d
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140039c0d
mov rdx, r11
mov rcx, rbx
call rax
mov r11, qword [rsp + 0xc8]
jmp 0x140039c35
test r11, r11
je 0x140039c51
mov eax, dword [r11 + 0x1c]
cmp eax, 0xd
je 0x140039c27
cmp eax, 9
je 0x140039c27
mov eax, 1
jmp 0x140039c35
test byte [r11 + 8], 0xe
mov eax, r14d
setne al
add eax, 2
cmp eax, 1
je 0x140039d1c
cmp eax, 4
jne 0x140039c9f
cmp dword [r11 + 0x1c], 0xff
jg 0x140039d1c
mov r14, qword [rsp + 0xc8]
lea eax, [r15 - 0xf]
test eax, 0xfffffffd
jne 0x140039c7b
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140039c7b
or dword [r14 + 4], 1
mov rdx, r14
mov rcx, rbx
call rax
mov edx, 0x95
mov r8d, 1
mov rcx, rbx
call fcn.140029630
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp eax, 2
jne 0x140039cd9
mov rax, rbx
test rbx, rbx
je 0x140039ccc
nop dword [rax]
cmp dword [rax + 8], 0x24
je 0x140039cc8
mov rax, qword [rax]
test rax, rax
jne 0x140039cb0
mov rcx, r14
call fcn.140028ed0
jmp 0x140039c51
mov r14, qword [rax + 0x10]
mov rcx, r14
call fcn.140028ed0
jmp 0x140039c51
cmp eax, 3
jne 0x140039c51
mov rax, rbx
test rbx, rbx
je 0x140039d0f
nop word [rax + rax]
cmp dword [rax + 8], 0x24
je 0x140039d0b
mov rax, qword [rax]
test rax, rax
jne 0x140039cf0
mov rcx, r14
call fcn.140029030
jmp 0x140039c51
mov r14, qword [rax + 0x10]
mov rcx, r14
call fcn.140029030
jmp 0x140039c51
mov eax, dword [r11 + 0x1c]
cmp eax, 0x10e
jne 0x140039d36
test ebp, ebp
lea edi, [rbp - 1]
cmovle edi, ebp
mov esi, edi
jmp 0x14003a285
cmp eax, 0x10f
jne 0x140039d4d
cmp ebp, r12d
lea edi, [rbp + 1]
cmovge edi, ebp
mov esi, edi
jmp 0x14003a285
cmp eax, 0x11d
jne 0x140039d64
test ebp, ebp
lea esi, [rbp - 1]
mov edi, r13d
cmovle esi, ebp
jmp 0x14003a285
cmp eax, 0x11e
jne 0x140039d7c
cmp ebp, r12d
lea esi, [rbp + 1]
mov edi, r13d
cmovge esi, ebp
jmp 0x14003a285
cmp eax, 0x121
jne 0x140039d8e
mov edi, r14d
mov esi, r12d
jmp 0x14003a285
mov rcx, qword [rsp + 0x40]
cmp rcx, 0x11
je 0x140039e36
cmp eax, 0x117
jne 0x140039dae
mov rax, qword [rsp + 0x48]
inc rax
jmp 0x140039dbd
cmp eax, 0x118
mov rax, qword [rsp + 0x48]
jne 0x140039dbd
dec rax
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.1400377c0
xor r8d, r8d
mov rcx, rbx
mov rsi, rax
lea edx, [r8 + 0x47]
call fcn.140029630
mov r8, rsi
mov edx, 0x47
mov rcx, rbx
call fcn.140037560
mov rax, rbx
test rbx, rbx
je 0x140039e05
cmp dword [rax + 8], 0x61
je 0x140039e99
mov rax, qword [rax]
test rax, rax
jne 0x140039df3
mov qword [rsp + 0x50], r14
mov rax, rbx
test rbx, rbx
je 0x140039e24
cmp dword [rax + 8], 0x62
je 0x140039eaa
mov rax, qword [rax]
test rax, rax
jne 0x140039e12
mov qword [rsp + 0x58], r14
mov r11, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x40]
mov r15d, r13d
mov eax, ebp
sub r15d, ebp
sub eax, r13d
cmovns r15d, eax
mov eax, dword [r11 + 0x1c]
cmp eax, 0x80
jge 0x140039f24
mov esi, ebp
mov edi, r13d
cmp dword [rsp + 0xc0], r14d
jne 0x14003a10d
cmp rcx, 0x11
je 0x140039eb8
movzx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isdigit]
mov r11, qword [rsp + 0xc8]
test eax, eax
jne 0x140039ed0
cmp dword [r11 + 0x1c], 0x2d
jne 0x14003a119
cmp qword [rsp + 0x50], r14
jl 0x140039ed0
jmp 0x14003a119
mov rcx, qword [rax + 0x10]
mov rax, rbx
mov qword [rsp + 0x50], rcx
jmp 0x140039e12
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
jmp 0x140039e29
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isprint]
test eax, eax
je 0x14003a27d
mov r11, qword [rsp + 0xc8]
sub r12d, r15d
mov esi, ebp
mov edi, r13d
cmp r12d, dword [rsp + 0xd8]
jge 0x14003a10d
movzx eax, byte [r11 + 0x1c]
mov r9d, ebp
mov byte [rsp + 0xc0], al
mov r8d, r13d
lea rax, [rsp + 0xc0]
mov byte [rsp + 0xc1], r14b
mov edx, 0x47
mov qword [rsp + 0x20], rax
mov rcx, rbx
call fcn.140037390
mov rsi, rax
mov edi, eax
jmp 0x14003a105
cmp eax, 0x10a
jne 0x140039f67
mov esi, ebp
mov edi, r13d
cmp dword [rsp + 0xc0], r14d
jne 0x14003a10d
lea r8d, [r13 - 1]
cmp r13d, ebp
cmovne r8d, r13d
mov r9d, ebp
mov qword [rsp + 0x20], r14
mov edx, 0x47
mov rcx, rbx
call fcn.140037390
mov esi, eax
mov edi, eax
jmp 0x14003a105
cmp eax, 0x10b
jne 0x140039f87
mov esi, ebp
mov edi, r13d
cmp dword [rsp + 0xc0], r14d
jne 0x14003a10d
lea r8d, [r13 + 1]
jmp 0x140039f42
cmp eax, 0x124
jne 0x140039fb4
mov r8d, ebp
mov edx, r13d
mov rcx, rsi
call fcn.14002d6f0
mov esi, ebp
mov edi, r13d
cmp dword [rsp + 0xc0], r14d
jne 0x14003a105
mov r8d, r13d
jmp 0x140039f49
cmp eax, 0x122
jne 0x140039fde
cmp r13d, ebp
mov edi, r14d
mov rcx, rsi
cmovne edi, r13d
cmovne r12d, ebp
mov r8d, r12d
mov edx, edi
call fcn.14002d6f0
mov esi, r12d
jmp 0x14003a105
mov esi, ebp
mov edi, r13d
cmp eax, 0x123
jne 0x14003a10d
cmp dword [rsp + 0xc0], r14d
jne 0x14003a10d
sub r15d, r12d
mov ecx, 1
add r15d, dword [rsp + 0xd8]
mov r12, r14
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x14003a0d6
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14003a0d6
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0xc0], rax
test rax, rax
je 0x14003a0d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x14003a0d0
mov edi, r14d
mov rdx, rax
test r15d, r15d
je 0x14003a0c2
nop word [rax + rax]
movzx ecx, byte [rdx]
lea rdx, [rdx + 1]
dec r15d
test cl, cl
je 0x14003a085
inc edi
test r15d, r15d
jne 0x14003a070
test edi, edi
jle 0x14003a0c2
lea eax, [rdi + 1]
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov rdx, rax
test rax, rax
je 0x14003a0c2
sub rsi, rax
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rsi + rdx]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub edi, 1
jne 0x14003a0b0
mov byte [rdx], r14b
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov esi, ebp
mov edi, r13d
test r12, r12
je 0x14003a105
mov r9d, ebp
mov qword [rsp + 0x20], r12
mov r8d, r13d
mov edx, 0x47
mov rcx, rbx
call fcn.140037390
mov rcx, r12
mov esi, eax
mov edi, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r11, qword [rsp + 0xc8]
cmp qword [rsp + 0x40], 0x11
je 0x14003a27d
mov rax, rbx
test rbx, rbx
je 0x14003a12f
cmp dword [rax + 8], 0x47
je 0x14003a1a0
mov rax, qword [rax]
test rax, rax
jne 0x14003a121
mov r10, r14
mov r9d, 1
mov ecx, r14d
mov r15, qword [rsp + 0x50]
imul ecx, r9d
mov r9, qword [rsp + 0x58]
movsxd rax, ecx
mov rcx, r15
cmp rax, r15
cmovge rcx, rax
cmp rcx, r9
cmovle r9, rcx
mov ecx, r9d
call fcn.1400306e0
cmp edi, eax
cmovg edi, eax
cmp esi, eax
cmovg esi, eax
test r9, r9
je 0x14003a189
mov rbp, r9
cmp r9, r15
jne 0x14003a20b
test r15, r15
jle 0x14003a20b
test r10, r10
je 0x14003a1ef
cmp byte [r10], r14b
jne 0x14003a1ef
mov edi, r14d
mov esi, 1
mov rbp, r9
jmp 0x14003a20b
mov r8, qword [rax + 0x10]
mov r9d, 1
mov ecx, r14d
mov r10, r8
test r8, r8
je 0x14003a13b
movzx edx, byte [r8]
test dl, dl
je 0x14003a13b
cmp dl, 0x2d
jne 0x14003a1cb
neg r9d
jmp 0x14003a1de
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14003a1de
lea ecx, [rcx + rcx*4]
movsx eax, dl
lea ecx, [rcx - 0x18]
lea ecx, [rax + rcx*2]
movzx edx, byte [r8 + 1]
inc r8
test dl, dl
jne 0x14003a1c1
jmp 0x14003a13b
mov rbp, r9
test r15, r15
jns 0x14003a20b
cmp dword [r11 + 0x1c], 0x2d
jne 0x14003a20b
mov rbp, 0xffffffffffffffff
lea edi, [rbp + 2]
lea esi, [rbp + 3]
mov rax, rbx
test rbx, rbx
je 0x14003a232
cmp dword [rax + 8], 0x47
je 0x14003a223
mov rax, qword [rax]
test rax, rax
jne 0x14003a213
jmp 0x14003a232
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14003a232
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x47]
call fcn.140029630
mov r8, rbp
mov edx, 0x47
mov rcx, rbx
call fcn.140029630
mov r15d, dword [rsp + 0xd0]
cmp r15d, 0x10
jne 0x14003a285
mov rax, qword [rsp + 0x38]
mov r14, qword [rsp + 0xc8]
test rax, rax
je 0x14003a28d
mov r8, r14
mov edx, ebp
mov rcx, rbx
call rax
jmp 0x14003a28d
mov r15d, dword [rsp + 0xd0]
mov r14, qword [rsp + 0xc8]
movsxd r8, edi
mov edx, 0xa6
mov rcx, rbx
call fcn.140029630
movsxd r8, esi
mov edx, 0xa5
mov rcx, rbx
call fcn.140029630
jmp 0x140039c59