Function at 0x10000da68
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x700
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x10001e110]
xor rax, rsp
mov qword [rsp + 0x6f8], rax
mov r12, rdx
mov esi, ecx
lea rdi, [0x100001ee0]
mov rdx, rdi
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__wsetlocale]
mov rdx, rdi
lea ecx, [rbx + 2]
call qword [sym.imp.msvcrt.dll__wsetlocale]
mov rdx, rdi
lea r13d, [rbx + 3]
mov ecx, r13d
call qword [sym.imp.msvcrt.dll__wsetlocale]
mov rdx, rdi
lea ecx, [rbx + 4]
call qword [sym.imp.msvcrt.dll__wsetlocale]
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov r9d, eax
lea r8, [0x100001ef0]
lea edx, [rbx + 7]
lea rcx, [rsp + 0x6e0]
call sub.msvcrt.dll_swprintf_s
lea rdx, [rsp + 0x6e0]
lea r15d, [rbx + 1]
mov ecx, r15d
call qword [sym.imp.msvcrt.dll__wsetlocale]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
nop
call qword [sym.imp.msvcrt.dll___iob_func]
add rax, 0x30
mov qword [0x10002efd8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x10002f038], rax
mov eax, 0x7bc
mov word [rsp + 0x28], ax
mov word [rsp + 0x2a], bx
mov word [rsp + 0x2c], r15w
mov word [rsp + 0x2e], r15w
xor r14d, r14d
mov word [rsp + 0x30], r14w
mov word [rsp + 0x32], r14w
mov word [rsp + 0x34], r14w
mov word [rsp + 0x36], r14w
lea rdx, [0x10002f248]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov dword [rsp + 0x20], r15d
mov r9d, r13d
lea r8, [rsp + 0x20]
lea edx, [rbx + 0x26]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r14
je 0x10000dccd
lea r8, [0x10002f458]
lea edx, [rbx + 0x27]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, r14d
je 0x10000dccd
mov rdi, qword [0x10002f458]
lea r8, [rsp + 0x20]
lea rdx, [0x100001ef8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, r14d
jne 0x10000dc12
mov eax, r14d
jmp 0x10000dc1f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.10000d780
mov dword [0x100080440], eax
mov rdi, qword [0x10002f458]
lea r8, [rsp + 0x20]
lea rdx, [0x100001f20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, r14d
jne 0x10000dc4a
mov eax, r14d
jmp 0x10000dc57
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.10000d780
mov dword [0x100080444], eax
mov rdi, qword [0x10002f458]
lea r8, [rsp + 0x20]
lea rdx, [0x100001f48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, r14d
jne 0x10000dc82
mov eax, r14d
jmp 0x10000dc8f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.10000d780
mov dword [0x100080448], eax
mov rdi, qword [0x10002f458]
lea r8, [rsp + 0x20]
lea rdx, [0x100001f70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, r14d
jne 0x10000dcba
mov eax, r14d
jmp 0x10000dcc7
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.10000d780
mov dword [0x10008044c], eax
cmp qword [0x10002f038], r14
jne 0x10000dcf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r8d, eax
mov edx, eax
lea rcx, [0x100001fb0]
call qword [sym.imp.msvcrt.dll_wprintf]
mov eax, ebx
jmp 0x10000e132
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov r13d, eax
mov ecx, eax
or ecx, 0x8001
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, 0xb0
mov rcx, rdi
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov qword [rsp + 0x20], rax
cmp rax, r14
je 0x10000dd31
mov rcx, rax
call fcn.100011820
jmp 0x10000dd34
mov rax, r14
mov qword [0x10006f460], rax
mov rcx, rdi
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov qword [rsp + 0x20], rax
cmp rax, r14
je 0x10000dd57
mov rcx, rax
call fcn.100011820
jmp 0x10000dd5a
mov rax, r14
mov qword [0x10001e998], rax
mov edi, 0x10
mov rdx, r12
mov ecx, esi
call fcn.100008e14
cmp eax, r14d
je 0x10000e06f
mov edi, r14d
cmp dword [0x10002edc0], r14d
je 0x10000dd96
mov edx, ebx
mov ecx, 0xe
call fcn.10000e4cc
jmp 0x10000e06f
call fcn.100009e0c
mov dword [0x10001e1c0], r14d
mov dword [0x10001e1c4], r14d
mov qword [0x10001e1c8], r14
mov dword [0x10001e1d8], r14d
mov dword [0x10001e1dc], r14d
mov qword [0x10001e1e0], r14
mov dword [0x10001e1f0], r14d
mov dword [0x10001e1f4], r14d
mov qword [0x10001e1f8], r14
mov dword [0x10001e208], r14d
mov dword [0x10001e20c], r14d
mov qword [0x10001e210], r14
mov dword [0x10001e220], r14d
mov dword [0x10001e224], r14d
mov qword [0x10001e228], r14
mov dword [0x10001e238], r14d
mov dword [0x10001e23c], r14d
mov qword [0x10001e240], r14
mov dword [0x10001e250], r14d
mov dword [0x10001e254], r14d
mov qword [0x10001e258], r14
mov dword [0x10001e268], r14d
mov dword [0x10001e26c], r14d
mov qword [0x10001e270], r14
cmp dword [0x100080460], r14d
je 0x10000de83
call fcn.10000bf80
cmp eax, r14d
je 0x10000de61
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000e132
cmp dword [0x100080460], r14d
je 0x10000de83
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, r14
cmove rax, qword [0x10001e160]
jmp 0x10000de8a
mov rax, qword [0x10001e160]
mov rcx, rax
call fcn.100011774
cmp dword [0x100080460], r14d
jne 0x10000dea4
mov rcx, qword [0x10001e168]
jmp 0x10000dec2
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, r14
jne 0x10000debe
mov rcx, qword [0x10001e168]
jmp 0x10000dec2
lea rcx, [rax + 0x10]
call fcn.100011774
cmp dword [0x100080460], r14d
jne 0x10000ded9
mov rcx, qword [0x10001e170]
jmp 0x10000def7
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, r14
jne 0x10000def3
mov rcx, qword [0x10001e170]
jmp 0x10000def7
lea rcx, [rax + 0x20]
call fcn.100011774
cmp dword [0x100080460], r14d
jne 0x10000df0e
mov rcx, qword [0x10001e170]
jmp 0x10000df2c
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, r14
jne 0x10000df28
mov rcx, qword [0x10001e170]
jmp 0x10000df2c
lea rcx, [rax + 0x20]
call fcn.1000116d4
add dword [0x10001e1c0], ebx
mov rcx, qword [0x10006f460]
call fcn.100011a80
mov rdx, qword [0x10001e998]
mov dword [rdx + 0xa0], ebx
mov rcx, qword [0x10006f460]
call fcn.10000c670
mov eax, dword [0x100080460]
cmp eax, r14d
je 0x10000df82
call fcn.10000c1d8
cmp eax, r14d
je 0x10000df7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000e132
mov eax, dword [0x100080460]
cmp qword [0x10001e210], r14
jne 0x10000df9d
cmp dword [0x10001e20c], r14d
jne 0x10000df9d
cmp dword [0x10001e208], r14d
je 0x10000dfa0
add edi, 8
cmp qword [0x10001e228], r14
jne 0x10000dfbb
cmp dword [0x10001e224], r14d
jne 0x10000dfbb
cmp dword [0x10001e220], r14d
je 0x10000dfbe
add edi, 4
cmp qword [0x10001e240], r14
jne 0x10000dfd9
cmp dword [0x10001e23c], r14d
jne 0x10000dfd9
cmp dword [0x10001e238], r14d
je 0x10000dfdc
add edi, r15d
cmp qword [0x10001e1e0], r14
jne 0x10000dfee
cmp dword [0x10001e1dc], r14d
je 0x10000dff0
add edi, ebx
cmp eax, r14d
jne 0x10000dffe
mov rcx, qword [0x10001e170]
jmp 0x10000e01c
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, r14
jne 0x10000e018
mov rcx, qword [0x10001e170]
jmp 0x10000e01c
lea rcx, [rax + 0x20]
call fcn.10001172c
cmp dword [0x10008035c], r14d
je 0x10000e035
xor edx, edx
mov ecx, ebx
call fcn.10000e4cc
jmp 0x10000e053
lea rcx, [rsp + 0x40]
call fcn.10001148c
lea rcx, [rsp + 0x40]
call fcn.1000101e4
lea rcx, [rsp + 0x40]
call fcn.100010ae8
cmp dword [0x100080460], r14d
je 0x10000e061
call fcn.10000bcbc
call fcn.10000d7dc
cmp eax, r14d
jne 0x10000dd9b
mov rcx, qword [0x10001e998]
cmp rcx, r14
je 0x10000e09f
mov rsi, qword [rcx + 8]
mov edx, dword [rcx + 0x98]
lea eax, [rdx - 1]
mov dword [rcx + 0x98], eax
cmp edx, ebx
jne 0x10000e09a
mov rax, qword [rcx]
mov edx, ebx
call qword [rax + 8]
mov rcx, rsi
jmp 0x10000e076
mov rcx, qword [0x10006f460]
cmp rcx, r14
je 0x10000e0cf
mov rsi, qword [rcx + 8]
mov edx, dword [rcx + 0x98]
lea eax, [rdx - 1]
mov dword [rcx + 0x98], eax
cmp edx, ebx
jne 0x10000e0ca
mov rax, qword [rcx]
mov edx, ebx
call qword [rax + 8]
mov rcx, rsi
jmp 0x10000e0a6
cmp qword [0x1000806b0], r14
je 0x10000e0f6
lea rcx, [0x100080698]
call sub.MFC42u.dll_CWnd::SetDlgItemTextW
mov rcx, rax
cmp rax, r14
je 0x10000e0cf
mov rax, qword [rax]
mov edx, ebx
call qword [rax + 8]
jmp 0x10000e0cf
call qword [sym.imp.msvcrt.dll___iob_func]
add rax, 0x30
mov rcx, qword [0x10002efd8]
cmp rcx, rax
je 0x10000e123
call qword [sym.imp.msvcrt.dll_fclose]
call qword [sym.imp.msvcrt.dll___iob_func]
add rax, 0x30
mov qword [0x10002efd8], rax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, edi
jmp 0x10000e132
mov rcx, qword [rsp + 0x6f8]
xor rcx, rsp
call fcn.100018470
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret