Function at 0x1800470b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r13
push r14
sub rsp, 0xb8
mov rax, qword [0x18011c010]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov esi, edx
mov qword [rsp + 0x58], rcx
and esi, 1
mov dword [rsp + 0x4c], edx
mov r14d, edx
mov dword [rsp + 0x48], esi
mov rdi, rcx
mov r13d, edx
and r14d, 0xfffffffc
je 0x1800472ad
mov qword [r11 + 0x10], rbx
lea rdx, [rsp + 0x40]
mov qword [r11 - 0x38], r15
call fcn.180097600
mov qword [rsp + 0x50], rax
mov r15, rax
test rax, rax
je 0x18004711d
cmp dword [rsp + 0x40], 0
jge 0x180047125
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov rbx, qword [0x18011ea88]
test rbx, rbx
je 0x180047250
mov rbx, qword [rbx]
mov rax, qword [rbx]
test rax, rax
jne 0x18004714a
sub rax, rdi
neg rax
sbb ecx, ecx
jmp 0x180047178
test rdi, rdi
je 0x1800471ea
mov rdx, rdi
sub rdx, rax
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x180047173
inc rax
test cl, cl
jne 0x180047160
xor ecx, ecx
jmp 0x180047178
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x1800471ea
mov eax, dword [rbx + 8]
and eax, r14d
cmp eax, dword [rbx + 8]
jne 0x1800471ea
mov rcx, qword [rbx + 0x10]
mov rdx, r15
call sym.glib_2.0.dll_g_pattern_match_simple
test eax, eax
je 0x1800471ea
mov rcx, qword [0x18011ea88]
mov rdx, rcx
call sym.glib_2.0.dll_g_slist_delete_link
mov rcx, qword [rbx]
mov qword [0x18011ea88], rax
test rcx, rcx
je 0x1800471bb
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800471ca
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r15, r15
je 0x18004729d
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18004729d
test r14b, r14b
js 0x180047250
mov edx, dword [rbx + 8]
lea rcx, [rsp + 0x68]
xor r8d, r8d
call fcn.180046cc0
mov rax, qword [rbx]
lea rdx, [0x1800f3f08]
mov r9, qword [rbx + 0x10]
lea r8, [rsp + 0x68]
test rax, rax
lea rcx, str.Did_not_see_expected_message__s__s:__s
cmovne rdx, rax
call sym.glib_2.0.dll_g_strdup_printf
xor r9d, r9d
lea rcx, [0x18009cbc8]
mov r8, rax
mov rbx, rax
lea edx, [r9 + 8]
call sym.glib_2.0.dll_g_log_default_handler
test rbx, rbx
je 0x18004724c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
or r14d, 2
mov qword [rsp + 0xb0], rbp
mov eax, 1
mov ebp, 0x20
mov qword [rsp + 0xa8], r12
nop word [rax + rax]
mov ecx, ebp
ror eax, 1
dec ebp
test r14d, eax
jne 0x1800472cb
test ebp, ebp
jg 0x180047270
test r15, r15
je 0x18004728d
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r12, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xe8]
mov r15, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1800989b0
add rsp, 0xb8
pop r14
pop r13
pop rdi
pop rsi
ret
test ecx, ecx
jle 0x18004727f
nop
mov ecx, ebp
mov edx, 1
shl edx, cl
test r14d, edx
je 0x180047554
mov ecx, edx
xor r15d, r15d
or ecx, 2
xor r12d, r12d
mov eax, r13d
and al, 2
mov rax, qword [0x18011ef58]
cmove ecx, edx
mov ebx, ecx
or ebx, 1
test esi, esi
cmove ebx, ecx
lea rcx, [0x18011ea70]
call qword [case.0x180005f92.0]
lea rcx, [0x18011ea90]
call fcn.180094fc0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x18011ea50]
mov r13, rax
mov dword [rsp + 0x40], r13d
test r9, r9
je 0x180047380
test rdi, rdi
lea r10, [0x1800eaba1]
cmovne r10, rdi
nop dword [rax]
mov rax, qword [r9]
mov r8, r10
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180047373
inc rax
test ecx, ecx
jne 0x180047360
test edx, edx
je 0x180047383
mov r9, qword [r9 + 0x18]
test r9, r9
jne 0x180047350
xor r9d, r9d
mov ecx, ebx
or ecx, 1
test r13d, r13d
cmove ecx, ebx
inc r13d
test r9, r9
je 0x18004739c
mov edx, dword [r9 + 8]
jmp 0x1800473a1
mov edx, 5
mov eax, dword [0x18011c13c]
mov edi, ecx
or edi, 2
or eax, edx
and eax, ecx
cmove edi, ecx
test dil, 1
je 0x1800473c2
lea rsi, [fcn.1800492c0]
jmp 0x180047404
test r9, r9
je 0x1800473f6
test edi, edi
je 0x1800473f6
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x1800473f6
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rcx + 4]
and eax, edi
cmp eax, edi
je 0x1800474c7
mov rcx, qword [rcx + 0x20]
test rcx, rcx
jne 0x1800473e0
mov r15, qword [0x18011ea80]
mov rsi, qword [sym.glib_2.0.dll_g_log_default_handler]
mov rax, qword [0x18011ef68]
lea rcx, [0x18011ea70]
call qword [case.0x180005f92.0]
lea rcx, [0x18011ea90]
call fcn.180094fc0
mov ecx, eax
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x58]
mov r9, r15
mov r15, qword [rsp + 0x50]
mov edx, edi
mov r8, r15
mov rcx, rbx
mov rax, rsi
call qword [case.0x180005f92.0]
mov eax, edi
and al, 6
cmp al, 2
jne 0x18004747e
mov rax, qword [0x18011ea28]
test rax, rax
je 0x18004747e
mov r9, qword [0x18011eab0]
mov r8, r15
mov edx, edi
mov rcx, rbx
call qword [case.0x180005f92.0]
test eax, eax
jne 0x18004747e
lea r12d, [rax + 1]
xor ebx, ebx
test dil, 2
je 0x18004752c
test r12d, r12d
jne 0x18004752c
cmp dword [0x18011ea58], r12d
je 0x180047510
lea rcx, [rsp + 0x60]
call sym.glib_2.0.dll_g_get_charset
lea rdx, [rbx - 1]
lea rcx, str.Unspecified_fatal_error_encountered__aborting.
test eax, eax
je 0x1800474d4
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call fcn.180019bb0
jmp 0x1800474fc
mov r15, qword [rcx + 0x10]
mov rsi, qword [rcx + 8]
jmp 0x180047404
mov r8, qword [rsp + 0x60]
lea r9, [0x1800eb510]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 1
call fcn.180019cc0
mov r9d, 0x10010
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [0x18011ebd4], 0
jne 0x180047592
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x18004759e
not edi
test dil, 1
je 0x18004759e
int3
mov ebx, dword [rsp + 0x40]
lea rcx, [0x18011ea90]
call fcn.180094fc0
mov ecx, eax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdi, qword [rsp + 0x58]
mov esi, dword [rsp + 0x48]
mov r13d, dword [rsp + 0x4c]
mov ecx, ebp
cmp ebp, 0x20
jbe 0x180047562
mov ecx, 0x20
jmp 0x18004756a
test ebp, ebp
jle 0x18004727f
mov eax, 1
rol eax, cl
dec ecx
ror eax, 1
test r14d, eax
jne 0x180047583
test ecx, ecx
jg 0x180047571
jmp 0x18004727f
mov ebp, ecx
test ecx, ecx
jns 0x1800472d0
jmp 0x18004727f
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
call sym.glib_2.0.dll_g_abort
int3