Function at 0x1400c03b0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, [0x14026e310]
mov qword [rcx], rax
lea rax, [0x14026d050]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], 0
mov rax, qword [r9]
test rax, rax
je 0x1400c041b
mov ecx, 1
lock xadd dword [rax], ecx
test ecx, ecx
jle 0x1400c0823
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rcx, rcx
jne 0x1400c0826
lea r14, [rsi + 0x18]
mov rcx, r14
mov rdx, rbx
call fcn.140073b00
mov qword [rsi + 0x28], 0
mov rax, qword [rdi + 0x10]
inc rax
cmp rax, 1
ja 0x1400c0450
mov rax, qword [rdi + 0x20]
inc rax
cmp rax, 1
jbe 0x1400c0820
mov eax, dword [0x1402a44f8]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c063a
lea r15, [rsi + 8]
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c0819
mov rcx, qword [0x1402a44e8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a44f0]
jne 0x1400c0819
mov rcx, qword [rax + rcx]
add rcx, 0x468
mov rdx, r15
call fcn.140014310
mov eax, dword [0x1402a4570]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c0688
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400c0816
mov rcx, qword [0x1402a4560]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a4568]
jne 0x1400c0816
mov rax, qword [rax + rcx]
test rax, rax
je 0x1400c0816
mov r15, qword [rax]
test r15, r15
je 0x1400c052d
lock inc dword [r15 + 8]
mov rax, qword [r14]
inc rax
cmp rax, 1
ja 0x1400c0542
movzx ebp, byte [rsi + 0x20]
xor ebp, 1
jmp 0x1400c0544
xor ebp, ebp
mov al, byte [rdi + 2]
lea rcx, [rsp + 0x38]
mov byte [rcx - 6], al
movzx eax, word [rdi]
mov word [rcx - 8], ax
lea rdx, [rdi + 8]
call fcn.1401246e0
lea rcx, [rsp + 0x48]
lea rdx, [rdi + 0x18]
call fcn.1401246e0
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x58]
lea r8, [rsp + 0x30]
mov rcx, r14
mov rdx, rsi
mov r9d, ebp
call fcn.1400c0850
mov rax, qword [r14]
mov rcx, qword [rsi + 0x28]
mov qword [rsi + 0x28], rax
test rcx, rcx
je 0x1400c05aa
lock dec dword [rcx + 8]
jne 0x1400c05aa
mov edx, 1
call fcn.140048500
mov rcx, qword [rsi + 0x28]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x1401e7f70.0]
mov rax, qword [rbx]
inc rax
cmp rax, 2
jae 0x1400c0605
mov rax, qword [rdi + 0x20]
inc rax
cmp rax, 2
jae 0x1400c071e
mov rax, qword [rdi + 0x10]
inc rax
cmp rax, 2
jae 0x1400c0754
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140105b90
mov r14, qword [rbx]
cmp qword [0x1402a45d0], 0
je 0x1400c06d6
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401e7f70.0]
mov qword [rbx], 0
jmp 0x1400c05c6
lea rcx, [0x1402a44f8]
call fcn.14017b2bc
cmp dword [0x1402a44f8], 0xffffffff
jne 0x1400c0475
mov qword [0x1402a44f0], 0
lea rcx, [0x1402a44e8]
mov qword [0x1402a44e8], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a44f8]
call fcn.14017b25c
jmp 0x1400c0475
lea rcx, [0x1402a4570]
call fcn.14017b2bc
cmp dword [0x1402a4570], 0xffffffff
jne 0x1400c04e2
mov qword [0x1402a4568], 0
lea rcx, [0x1402a4560]
mov qword [0x1402a4560], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a4570]
call fcn.14017b25c
jmp 0x1400c04e2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c083e
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400c0710
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
jmp 0x1400c0714
xor ecx, ecx
mov dl, 1
call fcn.140005a10
jmp 0x1400c061b
call fcn.140105b90
mov rbx, qword [rdi + 0x20]
cmp qword [0x1402a45d0], 0
je 0x1400c078a
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [case.0x1401e7f70.0]
mov qword [rdi + 0x20], 0
jmp 0x1400c05d7
call fcn.140105b90
mov rbx, qword [rdi + 0x10]
cmp qword [0x1402a45d0], 0
je 0x1400c07c4
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [case.0x1401e7f70.0]
mov qword [rdi + 0x10], 0
jmp 0x1400c05e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c0845
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400c07fa
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
jmp 0x1400c07fe
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400c084c
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400c0808
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
jmp 0x1400c080c
xor ecx, ecx
mov dl, 1
call fcn.140005a10
jmp 0x1400c0731
xor ecx, ecx
mov dl, 1
call fcn.140005a10
jmp 0x1400c0767
int3
xor ecx, ecx
jmp 0x1400c04ae
int3
int3
lock dec dword [rcx]
jne 0x1400c041b
mov rax, qword [rcx + 0x10]
call qword [case.0x1401e7f70.0]
jmp 0x1400c041b
xor ecx, ecx
jmp 0x1400c070c
xor ecx, ecx
jmp 0x1400c07c0
xor ecx, ecx
jmp 0x1400c07f6