Function at 0x10002440
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
xor ebx, ebx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp byte [eax + 0x4a4], bl
mov ebp, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], ebx
jbe 0x100024a3
lea esi, [ebp + 0x9928]
lea edx, [ebp + 0x780]
mov dword [edx], 0xff
mov edi, esi
mov eax, 0xffffffff
mov ecx, 0x10
rep stosd dword es:[edi], eax
add esi, 0x40
add edx, 4
xor eax, eax
inc dword [esp + 0x14]
mov al, byte [ebp + 0x4a4]
cmp eax, dword [esp + 0x14]
jg 0x10002477
mov eax, dword [esp + 0x1c]
lea edi, [ebp + 0x4d4]
mov ecx, 0xc
mov dword [ebp + 0x4ac], eax
xor eax, eax
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp + 0x494], esi
mov dword [ebp + 0x490], esi
mov eax, dword [ebp + 0x4ac]
cmp dword [eax + 0x90], esi
mov dword [ebp + 0x498], 1
jne 0x100024ec
mov dword [ebp + 0x498], 0
mov eax, dword [ebp + 0x4ac]
cmp dword [eax + 0x8c], 0
jne 0x10002508
mov eax, 0xffffffcb
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
lea edi, [ebp + 0x49c]
lea eax, [ebp + 0x4b4]
lea ecx, [ebp + 0x4b0]
mov dword [edi], 2
push ecx
mov dword [ebp + 0x4a0], eax
mov dword [ebp + 0x4b0], 2
push edi
mov eax, dword [ebp + 0x4a0]
push 0xffffffffffffffff
push eax
call fcn.1000e960
add esp, 0x10
mov dword [ebp + 0x5d84], eax
test eax, eax
jne 0x10002629
mov eax, dword [ebp + 0x4a0]
lea ecx, [eax + 1]
mov dword [ebp + 0x4a0], ecx
cmp byte [eax], 0xff
jne 0x100026eb
xor eax, eax
mov al, byte [ecx]
sub eax, 0xc0
cmp eax, 0x3f
ja case.0x1000257f.203
xor ecx, ecx
mov cl, byte [eax + 0x10002740]
jmp dword [ecx*4 + 0x10002710]
mov ebx, 0xfffffff7
jmp case.0x1000257f.195
mov eax, dword [ebp + 0x4ac]
or dword [eax + 0xe8], 4
call fcn.10003490
mov ebx, eax
cmp dword [esp + 0x10], 0
je 0x100025eb
lea eax, [ebp + 0x4b4]
lea ecx, [ebp + 0x4b0]
push ecx
mov dword [edi], 2
push edi
mov dword [ebp + 0x4a0], eax
mov dword [ebp + 0x4b0], 2
push 0xffffffffffffffff
mov eax, dword [ebp + 0x4a0]
push eax
call fcn.1000e960
add esp, 0x10
mov dword [ebp + 0x5d84], eax
test eax, eax
jne 0x100026ff
test ebx, ebx
jne 0x10002603
cmp dword [esp + 0x10], 0
jne 0x10002551
test ebx, ebx
jne 0x10002603
cmp esi, 2
jb 0x10002629
mov eax, dword [ebp + 0x4ac]
lea ecx, [eax + 0x5c]
add eax, 0x4c
push ecx
push eax
call fcn.10002ac0
mov ecx, dword [esp + 0x24]
add esp, 8
mov eax, ebx
mov dword [ecx + 0x110], 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
inc esi
call fcn.10003c70
mov ebx, eax
jmp case.0x1000257f.195
mov eax, dword [ebp + 0x4ac]
lea ecx, [eax + 0x5c]
add eax, 0x4c
push ecx
push eax
call fcn.100037b0
mov dword [esp + 0x18], 0
add esp, 8
mov ebx, eax
jmp case.0x1000257f.195
inc esi
call fcn.10003f60
mov ebx, eax
jmp case.0x1000257f.195
call fcn.100042e0
jmp 0x1000259f
mov eax, dword [ebp + 0x4ac]
add eax, 0x10
push eax
call fcn.100041d0
add esp, 4
jmp 0x1000259f
push 0
call fcn.10002b90
add esp, 4
jmp 0x1000259f
lea eax, [ebp + 0x4b4]
lea ecx, [ebp + 0x4b0]
push ecx
mov dword [edi], 2
push edi
mov dword [ebp + 0x4a0], eax
mov dword [ebp + 0x4b0], 3
push 0xffffffffffffffff
mov eax, dword [ebp + 0x4a0]
push eax
call fcn.1000e960
add esp, 0x10
mov dword [ebp + 0x5d84], eax
test eax, eax
je case.0x1000257f.195
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov ebx, 0xfffffff7
jmp 0x100025fa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret
mov eax, dword [ebp + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret