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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x380
push ebx
push esi
push edi
push 0x10000
push 0x100000
lea ecx, [ebp - 0x54]
mov edi, eax
call fcn.101d83d6
mov ecx, 7
lea eax, [ebp - 0xfc]
lea esi, [ecx + 0x2b]
xor edx, edx
mov dword [eax - 8], edx
mov dword [eax - 4], edx
mov dword [eax], 4
mov dword [eax + 4], esi
add eax, 0x10
sub ecx, 1
jns 0x10102330
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.10110900
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call fcn.100a4a80
lea ebx, [ebp - 0x2c]
call fcn.100a4820
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x101028ed
mov eax, dword [0x101e316c]
cmp eax, esi
jge 0x10102393
xor ebx, ebx
mov dword [ebp - 0x10], ebx
jmp 0x1010239f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
mov ebx, eax
mov eax, dword [ebx]
push esi
push 0x10000
push 1
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x101023c5
mov dword [ebp - 8], 0x8007000e
jmp 0x101028ed
push esi
push esi
mov dword [ebx], eax
call sub.msvcrt.dll__controlfp
push 0x8001f
push 0xffffffffffffffff
mov dword [ebp - 0x3c], eax
call sub.msvcrt.dll__controlfp
push 0x30000
push esi
call sub.msvcrt.dll__controlfp
mov ebx, dword [ebp + 0x24]
mov eax, dword [ebp + 8]
add esp, 0x18
mov dword [edi], eax
test ebx, 0xcfff0000
je 0x10102421
push 0x10089508
push 0x10081b44
mov edx, 0xc2c
push esi
mov eax, edi
call fcn.1010ad00
add esp, 0xc
mov dword [ebp - 8], 0x8876086c
jmp 0x101028ed
test ebx, 0x1000
je 0x10102448
test ebx, 0x800
je 0x10102448
push edi
mov eax, 0x10089528
call fcn.1010acd0
mov dword [ebp - 8], 0x8876086c
jmp 0x101028ed
cmp dword [ebp + 0xc], esi
je 0x10102469
test bl, 0x18
je 0x10102469
push edi
mov eax, 0x10089580
call fcn.1010acd0
mov dword [ebp - 8], 0x8876086c
jmp 0x101028ed
cmp dword [ebp + 0x28], esi
jne 0x10102475
push 0x100895c4
jmp 0x10102400
mov ecx, dword [ebp + 0x20]
push eax
push ecx
push ebx
push esi
mov eax, edi
call fcn.10101d70
cmp eax, esi
mov dword [ebp - 8], eax
jl 0x101028ed
mov dword [ebp - 0x18], esi
cmp dword [ebp + 0x18], esi
je 0x101024d7
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x101024c0
lea edx, [ebp - 0x38]
push edx
push esi
push 0x10
push eax
call fcn.101daa28
test eax, eax
jne 0x101024c0
mov eax, dword [ebp - 0x34]
or dword [edi + 0x14], 0x100
mov dword [edi + 0x10], eax
jmp 0x10102747
push edi
mov eax, 0x100895e0
call fcn.1010acd0
mov dword [ebp - 8], 0x8876086c
jmp 0x101028ed
test bl, 0xc0
je 0x10102571
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push esi
push 1
push eax
call fcn.101daa28
test eax, eax
je 0x10102507
mov edx, dword [edi + 0xc]
push edx
push 0x10089604
mov edx, 0xdb2
jmp 0x1010240a
mov eax, dword [ebp - 0x34]
mov ecx, eax
and ecx, 0xffff0000
cmp ecx, 0xfffe0000
je 0x1010254a
cmp ecx, 0xffff0000
jne 0x10102571
test bl, bl
jns 0x10102571
or ebx, 5
and eax, 0xff00
mov dword [ebp + 0x24], ebx
cmp eax, 0x300
jae 0x10102541
mov dword [edi + 0xc], 0x10089638
jmp 0x10102571
mov dword [edi + 0xc], 0x10089640
jmp 0x10102571
test bl, 0x40
je 0x10102571
or ebx, 5
and eax, 0xff00
mov dword [ebp + 0x24], ebx
cmp eax, 0x300
jae 0x1010256a
mov dword [edi + 0xc], 0x10089628
jmp 0x10102571
mov dword [edi + 0xc], 0x10089630
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x38]
push ecx
push esi
push 1
push eax
call fcn.101daa28
test eax, eax
je 0x10102598
mov edx, dword [edi + 0xc]
push edx
push 0x10089604
mov edx, 0xdb2
jmp 0x1010240a
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
cmp eax, 0xfffe0100
jne 0x101025af
mov dword [edi + 0x10], 0xfffe0101
cmp dword [edi + 0x10], 0xffff0100
jne 0x101025bf
mov dword [edi + 0x10], 0xffff0101
mov eax, dword [edi + 0x10]
mov ecx, eax
and ecx, 0xff00
cmp ecx, 0x400
jne 0x101025fb
test ebx, 0x20000000
je 0x10102624
push 0x10089648
push esi
mov edx, 0xdb2
mov eax, edi
call fcn.1010ad00
add esp, 8
mov dword [ebp - 8], 0x8876086c
jmp 0x101028ed
test ebx, 0x10000000
je 0x10102624
push 0x10089688
push esi
mov edx, 0xdb1
mov eax, edi
call fcn.1010ad00
add esp, 8
mov dword [ebp - 8], 0x8876086c
jmp 0x101028ed
cmp eax, 0xfffe0301
ja 0x1010265d
je 0x101026ef
cmp eax, 0xfffe0201
ja 0x10102653
je 0x101026ef
cmp eax, 0x54580100
je 0x101026ef
cmp eax, 0xfffe0102
jmp 0x101026e7
cmp eax, 0xfffe0203
jmp 0x101026e7
cmp eax, 0xffff0205
ja 0x101026e2
cmp eax, 0xffff0204
jae 0x101026ef
cmp eax, 0xffff0101
jb 0x101026e9
cmp eax, 0xffff0104
jbe 0x10102684
cmp eax, 0xffff0201
jmp 0x101026e7
test ebx, 0x1000
je 0x101026ac
mov eax, dword [ebp - 0x28]
push 0x100896b8
mov esi, 0xde9
mov ecx, edi
call fcn.1010ad30
add esp, 4
mov dword [edi + 0x10], 0xffff0200
jmp 0x101026f8
mov esi, dword [ebp - 0x28]
push 0x100896e8
push esi
mov edx, 0xdd3
mov eax, edi
call fcn.1010ad00
push 0x10089740
push esi
mov edx, 0xdd3
mov eax, edi
call fcn.1010ad00
add esp, 0x10
mov dword [ebp - 8], 0x80004001
jmp 0x101028ed
cmp eax, 0xffff0301
je 0x101026ef
cmp byte [edi + 0x11], 4
jb 0x101026f8
or ebx, 0x100
mov dword [edi + 0x14], ebx
mov eax, dword [edi + 0x10]
cmp eax, 0xfffe0301
ja 0x10102722
je 0x10102719
cmp eax, 0xfffe0102
je 0x10102719
cmp eax, 0xfffe0201
je 0x10102719
cmp eax, 0xfffe0203
jne 0x10102747
mov dword [ebp - 0x18], 0xfffe0400
jmp 0x10102747
cmp eax, 0xffff0205
ja 0x10102739
cmp eax, 0xffff0204
jae 0x10102740
cmp eax, 0xffff0201
je 0x10102740
jmp 0x10102747
cmp eax, 0xffff0301
jne 0x10102747
mov dword [ebp - 0x18], 0xffff0400
lea eax, [edi + 8]
push eax
mov eax, dword [edi + 0x10]
call fcn.100bf990
mov dword [ebp - 8], eax
test eax, eax
jl 0x101028ed
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x101027a7
mov ecx, dword [edi + 0x14]
lea edx, [ebp - 0x80]
push edx
mov edx, dword [edi]
lea eax, [ebp - 0x54]
push eax
or ecx, 0x80000000
push ecx
push edx
lea eax, [ebp - 0x37c]
call fcn.1010b710
mov esi, eax
call fcn.1010b810
mov ebx, eax
lea esi, [ebp - 0x37c]
mov dword [ebp - 8], ebx
call fcn.1010b790
test ebx, ebx
jl 0x101028ed
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp + 0xc], eax
call fcn.10168cd0
lea edx, [ebp - 0x54]
push edx
call fcn.10175160
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x104]
mov dword [esi + 0x124], eax
mov dword [esi + 0x128], 8
xor eax, eax
mov ecx, 4
lea edx, [ebp - 0xfc]
mov dword [edx], ecx
inc eax
add ecx, 4
add edx, 0x10
cmp eax, dword [esi + 0x128]
jb 0x101027e2
mov esi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push esi
push ebx
call fcn.10101ee0
mov dword [ebp - 8], eax
test eax, eax
jl 0x101028c0
cmp dword [ebp - 0x18], 0
je 0x101028ac
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
push edx
push eax
push ecx
push 0
mov eax, edi
call fcn.10101d70
mov dword [ebp - 8], eax
test eax, eax
jl 0x101028c0
mov eax, dword [ebp - 0x18]
lea ecx, [edi + 8]
push ecx
mov dword [edi + 0x10], eax
call fcn.100bf990
mov dword [ebp - 8], eax
test eax, eax
jl 0x101028c0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push esi
push ebx
call fcn.10101ee0
mov dword [ebp - 8], eax
test eax, eax
jl 0x101028c0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push edi
mov ecx, esi
call fcn.10102120
mov dword [ebp - 8], eax
test eax, eax
jl 0x101028c0
test esi, esi
je 0x10102898
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x28]
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [edx], ecx
mov dword [ebp - 8], esi
jmp 0x101028d2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x28]
mov esi, dword [ebp - 0xc]
mov dword [edx], ecx
mov dword [ebp - 8], 0
jmp 0x101028d2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x101028cf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x101028e1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
je 0x101028ed
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
call sub.msvcrt.dll__clearfp
mov edx, dword [ebp - 0x3c]
push 0xb001f
push edx
call sub.msvcrt.dll__controlfp
add esp, 8
mov ebx, edi
mov dword [edi + 4], 0
call fcn.10101cd0
lea edi, [ebp - 0x104]
mov esi, 8
lea esp, [esp]
call fcn.1010af60
add edi, 0x10
sub esi, 1
jne 0x10102920
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x10102945
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov dword [eax + 0x124], esi
mov dword [eax + 0x128], esi
mov eax, dword [0x101e316c]
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
jge 0x10102958
xor eax, eax
jmp 0x1010295b
push eax
call edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov eax, dword [0x101e316c]
cmp eax, esi
jge 0x10102971
xor eax, eax
jmp 0x10102974
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x1010298d
push eax
call ebx
cmp dword [ebp - 0x2c], esi
je 0x101029d4
mov eax, dword [0x101e316c]
test eax, eax
jge 0x1010299f
xor esi, esi
jmp 0x101029a4
push eax
call edi
mov esi, eax
dec dword [esi + 0x12c]
cmp dword [esi + 0x12c], 0
jg 0x101029d4
mov eax, dword [esi]
test eax, eax
je 0x101029bc
push eax
call ebx
push esi
call sub.msvcrt.dll_free
mov edx, dword [0x101e316c]
add esp, 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edi, [ebp - 0x84]
mov esi, 7
nop
sub edi, 0x10
call fcn.1010af60
sub esi, 1
jns 0x101029e0
lea ecx, [ebp - 0x54]
call fcn.101d8430
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24