Function at 0x14010f990
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov rax, qword [0x14055f260]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rbx, rcx
xor r13d, r13d
mov r14d, r13d
mov dword [rsp + 0x30], r13d
mov byte [rsp + 0x98], r13b
lea rax, [fcn.14010f980]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rcx
mov dword [rsp + 0x34], 0xffffffff
lea r15, str.wxThreadInternal::DoThreadStart
lea r12, str.C:ProjectwxWidgets_3.2.2.1_srcmsw_thread.cpp
cmp dword [0x14055a480], 0xffffffff
jne 0x14010fa45
cmp qword [0x14055a4b8], r13
je 0x14010fa45
lea rax, str.TLS_index_not_set._Is_wx_initialized_
mov qword [rsp + 0x20], rax
lea r9, str.gs_tlsThisThread_____DWORD_0xFFFFFFFF_
mov r8, r15
mov edx, 0x210
mov rcx, r12
call fcn.140118ee0
cmp byte [0x1405750a8], r13b
je 0x14010fa45
mov byte [0x1405750a8], r13b
int3
mov rdx, rbx
mov ecx, dword [0x14055a480]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140110353
mov edi, 0xffff
lea rsi, [0x1403c8f48]
test al, al
jne 0x14010fac2
mov rdx, rsi
lea rcx, [rsp + 0xe8]
call fcn.14010a1d0
mov rbx, rax
or r14d, 1
mov dword [rsp + 0x30], r14d
cmp dword [0x140575068], 0
je 0x14010faa6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x140575068]
je 0x14010faa6
call fcn.140136fe0
jmp 0x14010faad
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x14010fac2
mov rcx, rbx
call fcn.140136b60
cmp eax, 1
jb 0x14010fac2
mov bl, 1
jmp 0x14010fac4
xor bl, bl
test r14b, 1
je 0x14010faee
and r14d, 0xfffffffe
mov dword [rsp + 0x30], r14d
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0xe8]
call fcn.14000e160
test bl, bl
je 0x14011033e
mov rax, qword [0x140575108]
test rax, rax
jne 0x14010fb0e
call fcn.140120770
mov qword [0x140575108], rax
mov r9, rax
mov r8, qword [0x1403c87b8]
lea rdx, str.Cannot_start_thread:_error_writing_TLS.
lea rcx, [rsp + 0x78]
call fcn.140109720
nop
mov rbx, qword [rax]
mov qword [rsp + 0x60], rbx
call fcn.14010aa30
cmp rbx, rax
je 0x14010fb40
inc word [rbx + 0x10]
or r14d, 2
mov dword [rsp + 0x30], r14d
call fcn.14010aa30
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
je 0x14010fb93
add word [rcx + 0x10], di
jne 0x14010fb89
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x14010fb84
cmp byte [rdi + 0x12], 0
je 0x14010fb77
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rdi
call fcn.14036c454
mov edi, 0xffff
call fcn.14010aa30
mov qword [rsp + 0x78], rax
mov rdx, qword [rbx]
mov qword [rsp + 0xe8], r13
mov qword [rsp + 0xf8], r13
mov qword [rsp + 0x100], 7
mov word [rsp + 0xe8], r13w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14010fbc2
lea rcx, [rsp + 0xe8]
call fcn.14001d300
and r14d, 0xfffffffd
mov dword [rsp + 0x30], r14d
call fcn.14010aa30
cmp rbx, rax
je 0x14010fc19
add word [rbx + 0x10], di
jne 0x14010fc0f
cmp byte [rbx + 0x12], 0
je 0x14010fc02
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x108], r13
mov qword [rsp + 0x110], r13
mov qword [rsp + 0x148], r13
mov qword [rsp + 0x158], r13
mov qword [rsp + 0x160], 7
mov word [rsp + 0x148], r13w
mov qword [rsp + 0x168], r13
mov qword [rsp + 0x170], r13
mov qword [rsp + 0x118], r13
mov qword [rsp + 0x128], r13
mov qword [rsp + 0x130], 7
mov word [rsp + 0x118], r13w
mov qword [rsp + 0x138], r13
mov qword [rsp + 0x140], r13
call fcn.140149fa0
test rax, rax
je 0x14010fcc5
lea r9, [rsp + 0x148]
lea r8, [rsp + 0x118]
lea rdx, [rsp + 0xe8]
mov rcx, rax
call fcn.14014a3e0
mov rbx, rax
test rax, rax
jne 0x14010fcd5
lea rcx, [rsp + 0xe8]
call fcn.14014b190
mov rbx, rax
call fcn.14010aa30
mov qword [rsp + 0x38], rax
call fcn.14010aa30
mov qword [rsp + 0x40], rax
call fcn.14010aa30
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r13
mov rax, qword [0x140575108]
test rax, rax
jne 0x14010fd15
call fcn.140120770
mov qword [0x140575108], rax
mov r9, rax
mov r8, qword [0x1403c87b8]
lea rdx, str.wx.sys_error
lea rcx, [rsp + 0x88]
call fcn.140109720
nop
mov rbx, qword [rax]
mov qword [rsp + 0x68], rbx
call fcn.14010aa30
cmp rbx, rax
je 0x14010fd4a
inc word [rbx + 0x10]
or r14d, 4
mov dword [rsp + 0x30], r14d
call fcn.14010aa30
mov rcx, qword [rsp + 0x88]
cmp rcx, rax
je 0x14010fda6
add word [rcx + 0x10], di
jne 0x14010fd99
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x14010fd94
cmp byte [rdi + 0x12], 0
je 0x14010fd87
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rdi
call fcn.14036c454
mov edi, 0xffff
call fcn.14010aa30
mov qword [rsp + 0x88], rax
mov rdx, qword [rbx]
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0xd0], 7
mov word [rsp + 0xb8], r13w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14010fdd5
lea rcx, [rsp + 0xb8]
call fcn.14001d300
and r14d, 0xfffffffb
mov dword [rsp + 0x30], r14d
call fcn.14010aa30
cmp rbx, rax
je 0x14010fe2c
add word [rbx + 0x10], di
jne 0x14010fe22
cmp byte [rbx + 0x12], 0
je 0x14010fe15
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xd8], r13
mov qword [rsp + 0xe0], r13
mov dword [rsp + 0x180], 1
mov qword [rsp + 0x188], r12
mov qword [rsp + 0x198], r15
mov dword [rsp + 0x190], 0x214
mov qword [rsp + 0x1a0], rsi
mov qword [rsp + 0x1a8], r13
mov qword [rsp + 0x1b0], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x1b8], eax
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d8], r13
mov qword [rsp + 0x1e0], 7
mov word [rsp + 0x1c8], r13w
mov qword [rsp + 0x1e8], r13
mov qword [rsp + 0x1f0], r13
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp qword [rsp + 0x1d8], 0
je 0x14010ff18
cmp qword [0x14055a4b8], 0
je 0x14010ff18
lea rax, str.can_only_have_one_optional_value
mov qword [rsp + 0x20], rax
lea r9, str.m_optKey.empty__
lea r8, str.wxLogger::MaybeStore
mov edx, 0x39e
lea rcx, str.C:ProjectwxWidgets_3.2.2.1includewxlog.h
call fcn.140118ee0
cmp byte [0x1405750a8], 0
je 0x14010ff18
mov byte [0x1405750a8], 0
int3
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdx, qword [rsp + 0xb8]
mov r8, qword [rsp + 0xc8]
lea rcx, [rsp + 0x1c8]
call fcn.14001d300
mov rbx, qword [rsp + 0x1c0]
test rbx, rbx
jne 0x14010ffc1
lea ecx, [rbx + 0x40]
call fcn.14036c0f8
mov rbx, rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x70], rax
mov ecx, 0x64
call fcn.14011ba90
mov ecx, eax
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], r13
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx], rax
lea rdi, [rbx + 0x20]
mov qword [rsp + 0x70], rdi
mov ecx, 0x64
call fcn.14011ba90
mov ecx, eax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r13
mov edx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rdi], rax
mov qword [rsp + 0x1c0], rbx
lea rdx, [rsp + 0xb8]
mov rcx, rbx
call fcn.14010ec40
mov qword [rax], rsi
lea rcx, [rsp + 0x38]
call fcn.140143f20
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.140011670
nop
mov rcx, qword [rsp + 0x1e8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rsp + 0x1e0]
cmp rdx, 8
jb 0x140110048
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x1c8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140110043
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140110043
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14036c454
mov qword [rsp + 0x1d8], r13
mov qword [rsp + 0x1e0], 7
mov word [rsp + 0x1c8], r13w
mov rbx, qword [rsp + 0x1c0]
test rbx, rbx
je 0x1401100c4
lea r8, [0x1400110e0]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.14011b9f0
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r8, [0x140011220]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.14011b9f0
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov edx, 0x40
mov rcx, rbx
call fcn.14036c454
nop
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rsp + 0xd0]
cmp rdx, 8
jb 0x14011011e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140110118
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140110118
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14036c454
nop
call fcn.14010aa30
mov rcx, qword [rsp + 0x48]
mov edi, 0xffff
cmp rcx, rax
je 0x140110168
add word [rcx + 0x10], di
jne 0x14011015e
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14011015e
cmp byte [rbx + 0x12], 0
je 0x140110151
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x48], rax
call fcn.14010aa30
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x1401101ad
add word [rcx + 0x10], di
jne 0x1401101a3
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x1401101a3
cmp byte [rbx + 0x12], 0
je 0x140110196
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x40], rax
call fcn.14010aa30
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x1401101f2
add word [rcx + 0x10], di
jne 0x1401101e8
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1401101e8
cmp byte [rbx + 0x12], 0
je 0x1401101db
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14036c454
call fcn.14010aa30
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x138]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rsp + 0x130]
cmp rdx, 8
jb 0x14011024b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140110246
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140110246
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14036c454
mov qword [rsp + 0x128], r13
mov qword [rsp + 0x130], 7
mov word [rsp + 0x118], r13w
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rsp + 0x160]
cmp rdx, 8
jb 0x1401102c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x148]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401102bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401102bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14036c454
mov qword [rsp + 0x158], r13
mov qword [rsp + 0x160], 7
mov word [rsp + 0x148], r13w
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rsp + 0x100]
cmp rdx, 8
jb 0x140110337
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xe8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140110332
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140110332
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14036c454
mov al, 1
jmp 0x14010fa61
lea rcx, [rsp + 0x98]
call fcn.14010d0d0
nop
mov eax, 0xffffffff
jmp 0x140110379
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov rbx, rax
mov dword [rsp + 0x34], eax
jmp 0x140110369
lea rcx, [rsp + 0x98]
call fcn.14010d0d0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14036c0d0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret