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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x4dd1e0]
test eax, eax
je 0x4108d8
mov ebx, dword [eax + 0x14]
test ebx, ebx
jne 0x410798
mov dword [eax + 0x14], 0x4dd1bc
mov edx, 0x4dd1bc
cmp dword [edx], 1
je 0x41073c
mov eax, edx
call fcn.0040fd20
mov eax, dword [0x4dd1e0]
test eax, eax
je 0x410770
mov edx, dword [eax + 0x18]
test edx, edx
jne 0x410790
mov dword [eax + 0x18], 0x4d0030
mov eax, 0x4d0030
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4107a0
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00414e40
mov ebp, dword [eax + 0x18]
mov eax, dword [0x4dd1e0]
test ebp, ebp
je 0x410743
test eax, eax
jne 0x410790
call fcn.00414e40
lea esi, [esi]
mov eax, dword [eax + 0x18]
jmp 0x41074f
mov edx, dword [eax + 0x14]
jmp 0x410727
call fcn.0040f8c0
mov edi, dword [entry3]
mov esi, eax
test edi, edi
je 0x410763
test eax, eax
je 0x410763
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x18], eax
sub esp, 0x10
lea eax, [esi + 0x38]
mov dword [esp], eax
call fcn.0040e560
cmp eax, 1
je 0x410945
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x64], 0
mov dword [esi + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ebx, eax
call ebp
lea edx, [esi + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x4cceb9
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], eax
movzx eax, byte [esi + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [esi + 0x20], al
mov eax, dword [0x4dd1e0]
test eax, eax
je 0x410920
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x410910
mov eax, dword [eax + 0x18]
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x4cceb9
add esp, 0x2c
mov ebx, esi
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00414e40
mov ecx, dword [eax + 0x14]
mov eax, dword [0x4dd1e0]
test ecx, ecx
je 0x41071b
test eax, eax
jne 0x410798
call fcn.00414e40
mov edx, dword [eax + 0x14]
cmp dword [edx], 1
jne 0x41072c
jmp 0x410733
mov dword [eax + 0x18], 0x4d0030
mov eax, 0x4d0030
jmp 0x4108ac
call fcn.00414e40
mov edx, eax
mov eax, dword [0x4dd1e0]
mov edx, dword [edx + 0x18]
test edx, edx
je 0x410910
test eax, eax
jne 0x4108a9
call fcn.00414e40
jmp 0x4108a9
call fcn.0040fc30
lea esi, [esi]
mov eax, dword [0x4dd1e0]
mov dword [eax + 8], 0x4dd1c8
mov eax, 0x4dd1c8
ret
call sub.msvcrt.dll_abort