Function at 0x100094c0
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x78
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 0x5b40]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
add ecx, 0x7e8
cmp eax, 3
mov dword [esp + 0x3c], ecx
jne 0x10009522
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x7cc]
mov eax, edx
add edx, dword [ecx + 0x7d0]
shl eax, 8
shl edx, 8
lea ebx, [eax + ecx + 0x7e8]
mov dword [esp + 0x38], ebx
lea eax, [edx + ecx + 0x7e8]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x28], 0
jle 0x1000958f
xor ebx, ebx
mov esi, dword [esp + 0x18]
add esi, 0x5b20
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
lea edi, [esp + 0x64]
mov eax, dword [ecx + 0x7bc]
mov edx, dword [ecx + 0x7c0]
mov ecx, ebp
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x40], edx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x70]
mov ecx, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov eax, dword [esp + 0x4c]
shl ecx, 3
sub edx, edx
add ebx, 4
add esi, 4
div ecx
mov ecx, dword [esi + 0xc]
sub edx, edx
shl ecx, 3
mov dword [esp + ebx + 0x54], eax
mov eax, dword [esp + 0x40]
div ecx
dec ebp
mov dword [esp + ebx + 0x78], eax
jne 0x10009563
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
cmp dword [ecx + 0x7c0], eax
jle 0x100099ce
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x8c]
and ecx, 7
mov edx, dword [esp + 0x30]
shl ecx, 5
mov esi, dword [ebx + edx*4]
add ecx, 0x1002d668
cmp dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
jle 0x100095e1
mov edx, dword [esp + 0x28]
lea edi, [esp + 0x40]
mov ecx, edx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x4c]
mov ecx, edx
rep stosd dword es:[edi], eax
cmp dword [esp + 0x28], 3
mov ebp, dword [esp + 0x3c]
jne 0x100095fc
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp dword [ecx + 0x7bc], eax
jle 0x100098e9
cmp dword [esp + 0x28], 3
jne 0x100096d2
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
and ecx, 0xffc0
shr ecx, 4
lea edx, [ecx + 0x1002f360]
mov ecx, dword [esp + 0x1c]
movsx ebx, word [edx]
mov ecx, dword [ecx]
mov dword [esp + 0x10], ebx
and ecx, 0xffc0
shr ecx, 4
add ecx, 0x10030360
movsx ebx, word [edx + 2]
movsx edx, word [ecx]
movsx ecx, word [ecx + 2]
add ebx, edx
mov edx, dword [ebp]
xor edx, 0xffff8003
and edx, 0xfffc
shr edx, 2
add ebx, edx
add dword [esp + 0x10], edx
add edx, ecx
test byte [esp + 0x11], 0xc0
je 0x10009695
mov ecx, dword [esp + 0x10]
and ecx, 0x8000
cmp ecx, 1
sbb ecx, ecx
and ecx, 0xff
mov dword [esp + 0x10], ecx
jmp 0x1000969a
sar dword [esp + 0x10], 6
test bh, 0xc0
je 0x100096b2
and ebx, 0x8000
cmp ebx, 1
sbb ebx, ebx
and ebx, 0xff
jmp 0x100096b5
sar ebx, 6
test dh, 0xc0
je 0x100096cd
and edx, 0x8000
cmp edx, 1
sbb edx, edx
and edx, 0xff
jmp 0x10009705
sar edx, 6
jmp 0x10009705
mov edx, dword [ebp]
xor edx, 0xffff8003
and edx, 0xfffc
shr edx, 2
test dh, 0xc0
je 0x100096fc
and edx, 0x8000
cmp edx, 1
sbb edx, edx
and edx, 0xff
jmp 0x100096ff
sar edx, 6
mov ebx, edx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x7b8]
dec ecx
cmp ecx, 9
ja case.0x1000972b.5
mov cl, byte [ecx + 0x100099ec]
mov dword [esp + 0x24], eax
mov byte [esp + 0x24], cl
mov ecx, dword [esp + 0x24]
jmp dword [ecx*4 + 0x100099d8]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
and edi, 7
mov edi, dword [ecx + edi*4]
mov ecx, dword [esp + 0x10]
sar edi, 3
sub edi, 0x10
add ecx, edi
cmp ecx, 0xff
jl 0x10009759
mov ecx, 0xff
test ecx, ecx
jg 0x1000975f
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea ecx, [ebx + edi]
cmp ecx, 0xff
jl 0x10009773
mov ecx, 0xff
test ecx, ecx
jg 0x10009779
xor ecx, ecx
lea ebx, [edx + edi]
cmp ebx, 0xff
jl 0x10009789
mov ebx, 0xff
test ebx, ebx
jg 0x1000978f
xor ebx, ebx
shr ecx, 3
mov edx, dword [esp + 0x10]
shr edx, 6
and cl, 0x1c
and dl, 3
and bl, 0xe0
or dl, cl
inc esi
or dl, bl
mov byte [esi - 1], dl
jmp case.0x1000972b.5
shr edx, 1
inc esi
and dl, 0x7c
inc esi
mov dword [esp + 0x24], ebx
and byte [esp + 0x24], 0x38
sar ebx, 6
mov ecx, dword [esp + 0x24]
shl cl, 2
or dl, bl
mov byte [esp + 0x24], cl
mov ecx, dword [esp + 0x10]
sar ecx, 3
or byte [esp + 0x24], cl
mov cl, byte [esp + 0x24]
mov byte [esi - 2], cl
mov byte [esi - 1], dl
jmp case.0x1000972b.5
mov cl, byte [esp + 0x10]
mov byte [esi], cl
mov byte [esi + 1], bl
mov byte [esi + 2], dl
mov edx, dword [esp + 0x18]
add esi, dword [edx + 0x7b8]
jmp case.0x1000972b.5
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
and edi, 7
mov edi, dword [ecx + edi*4]
mov cl, 4
cmp dword [esp + 0x10], edi
jg 0x10009817
xor cl, cl
cmp edx, edi
setg dl
or cl, dl
mov dl, 2
cmp ebx, edi
jg 0x10009826
xor dl, dl
or cl, dl
xor edx, edx
mov dl, cl
test edx, edx
je 0x10009833
or edx, 8
test byte [esp + 0x14], 1
je 0x10009842
shl dl, 4
or byte [esi], dl
inc esi
jmp case.0x1000972b.5
mov byte [esi], dl
mov ecx, dword [esp + 0x58]
inc dword [esp + 0x4c]
cmp dword [esp + 0x4c], ecx
jl 0x1000986e
add ebp, 4
mov dword [esp + 0x4c], eax
inc dword [esp + 0x40]
cmp dword [esp + 0x40], 8
jl 0x1000986e
add ebp, 0xe0
mov dword [esp + 0x40], eax
cmp dword [esp + 0x28], 3
jne 0x100098d1
mov ecx, dword [esp + 0x5c]
inc dword [esp + 0x50]
cmp dword [esp + 0x50], ecx
jl 0x100098a3
mov dword [esp + 0x50], eax
inc dword [esp + 0x44]
add dword [esp + 0x20], 4
cmp dword [esp + 0x44], 8
jl 0x100098a3
add dword [esp + 0x20], 0xe0
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x60]
inc dword [esp + 0x54]
cmp dword [esp + 0x54], ecx
jl 0x100098d1
mov dword [esp + 0x54], eax
inc dword [esp + 0x48]
add dword [esp + 0x1c], 4
cmp dword [esp + 0x48], 8
jl 0x100098d1
add dword [esp + 0x1c], 0xe0
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x18]
inc dword [esp + 0x14]
mov edx, dword [esp + 0x14]
cmp dword [ecx + 0x7bc], edx
jg 0x10009610
inc dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x7c], ecx
jg 0x10009926
mov dword [esp + 0x70], eax
inc dword [esp + 0x64]
add dword [esp + 0x3c], 0x20
cmp dword [esp + 0x64], 8
jl 0x10009926
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x64], eax
mov ecx, dword [ecx + 0x5b20]
shl ecx, 8
sub ecx, 0x100
add dword [esp + 0x3c], ecx
cmp dword [esp + 0x28], 3
jne 0x100099b6
inc dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x80], ecx
jg 0x10009971
mov dword [esp + 0x74], eax
inc dword [esp + 0x68]
add dword [esp + 0x38], 0x20
cmp dword [esp + 0x68], 8
jl 0x10009971
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov ecx, dword [ecx + 0x5b24]
shl ecx, 8
sub ecx, 0x100
add dword [esp + 0x38], ecx
inc dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
cmp dword [esp + 0x84], ecx
jg 0x100099b6
mov dword [esp + 0x78], eax
inc dword [esp + 0x6c]
add dword [esp + 0x1c], 4
add dword [esp + 0x34], 0x20
cmp dword [esp + 0x6c], 8
jl 0x100099b6
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], eax
mov ecx, dword [ecx + 0x5b28]
shl ecx, 8
sub ecx, 0x100
add dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
inc dword [esp + 0x30]
mov edx, dword [esp + 0x30]
cmp dword [ecx + 0x7c0], edx
jg 0x100095a5
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret