Function at 0x100be810
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x28], eax
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x100bedcd
lea eax, [esi + 8]
mov dword [ebp - 0x20], esi
mov ecx, dword [esi + 8]
mov esi, eax
movzx eax, byte [edi + 0xb]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov dword [ebp - 0x14], esi
je 0x100be95a
mov ecx, dword [ebp - 0x24]
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
test cl, cl
jns 0x100be870
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x100be87e
cmp dword [ebp - 0x10], 0
je 0x100bee3f
mov edx, esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
jmp 0x100be898
mov edx, esi
mov esi, dword [esi]
test esi, esi
je 0x100be8f9
movzx ebx, byte [esi + 0x1b]
test bl, bl
jns 0x100be8b0
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
test ebx, ebx
jne 0x100be8b7
jmp 0x100be8bf
lea eax, [esi + 0x10]
test ebx, ebx
je 0x100be8bf
test eax, eax
je 0x100bee3c
cmp ebx, edi
mov ecx, edi
cmovb ecx, ebx
test ecx, ecx
je 0x100be8f0
push ecx
push dword [ebp - 0x10]
push eax
mov edi, edx
call fcn.10147f9d
mov edx, edi
mov edi, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x100be8f0
jns 0x100be890
jmp 0x100be8f4
cmp ebx, edi
jae 0x100be890
add esi, 4
jmp 0x100be892
mov esi, dword [ebp - 0x14]
cmp edx, esi
je 0x100be95a
movzx ebx, byte [edx + 0x1b]
test bl, bl
jns 0x100be914
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0x10]
test ebx, ebx
jne 0x100be91b
jmp 0x100be923
lea eax, [edx + 0x10]
test ebx, ebx
je 0x100be923
test eax, eax
je 0x100bee42
cmp edi, ebx
mov ecx, ebx
cmovb ecx, edi
test ecx, ecx
je 0x100be956
push ecx
push eax
push dword [ebp - 0x10]
mov edi, edx
call fcn.10147f9d
mov edx, edi
mov edi, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x100be956
js 0x100be95a
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
jmp 0x100bebef
cmp edi, ebx
jae 0x100be948
push 0xc
call fcn.10145ba4
add esp, 4
mov edx, eax
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
js 0x100be982
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
movsd xmm0, qword [ecx]
movsd qword [edx], xmm0
jmp 0x100be9e5
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
cmp ebx, 0xa
ja 0x100be99a
mov byte [edx + 0xb], bl
mov eax, edx
cmp eax, esi
jbe 0x100be9ca
jmp 0x100be9d6
cmp ebx, 0x7ffffff0
jae 0x100bee37
mov edi, ebx
or edi, 0xf
inc edi
push edi
call fcn.10145ba4
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
or edi, 0x80000000
mov dword [edx + 8], edi
mov dword [edx + 4], ebx
cmp eax, esi
ja 0x100be9d6
lea ecx, [eax + ebx]
inc ecx
cmp ecx, esi
ja 0x100bee45
inc ebx
push ebx
push esi
push eax
call fcn.10148eb0
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov edi, esi
mov eax, dword [ebp - 0x1c]
test eax, eax
mov ecx, esi
je 0x100beb17
movzx edx, byte [eax + 0x1b]
test dl, dl
jns 0x100bea08
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
test edx, edx
jne 0x100bea0f
jmp 0x100bea17
lea ebx, [eax + 0x10]
test edx, edx
je 0x100bea17
test ebx, ebx
je 0x100beb07
mov ecx, dword [ebp - 0x24]
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test cl, cl
jns 0x100bea2e
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
test esi, esi
mov dword [ebp - 0x10], esi
je 0x100bea43
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], 0
mov ecx, ebx
jne 0x100bea50
int3
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
nop dword [eax + eax]
cmp esi, edx
mov ebx, edx
cmovb ebx, esi
test ebx, ebx
je 0x100bea80
mov esi, edx
push ebx
mov dword [ebp - 0x1c], ecx
push ecx
push dword [ebp - 0x14]
call fcn.10147f9d
add esp, 0xc
test eax, eax
je 0x100bea90
jns 0x100beab0
jmp 0x100bea97
cmp esi, edx
jb 0x100bea97
jmp 0x100bead0
mov eax, esi
cmp dword [ebp - 0x10], esi
jae 0x100beab0
mov eax, dword [edi]
mov ecx, edi
test eax, eax
mov esi, dword [ebp - 0x10]
jne 0x100beade
jmp 0x100beb17
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.10147f9d
mov edx, esi
add esp, 0xc
test eax, eax
je 0x100bead0
mov esi, dword [ebp - 0x10]
js 0x100bead7
jmp 0x100beb0a
mov esi, dword [ebp - 0x10]
cmp edx, esi
jae 0x100beb0a
mov eax, dword [edi + 4]
test eax, eax
je 0x100beb14
movzx edx, byte [eax + 0x1b]
test dl, dl
jns 0x100beaf0
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
jmp 0x100beaf3
lea ecx, [eax + 0x10]
mov edi, eax
test edx, edx
je 0x100bea50
mov edi, eax
test ecx, ecx
jne 0x100bea50
int3
mov esi, edi
mov edi, dword [ebp - 0x20]
jmp 0x100bebe9
lea ecx, [edi + 4]
mov dword [ebp - 0x14], ecx
push 0x20
call fcn.10145ba4
add esp, 4
mov esi, eax
add eax, 0x10
cmp byte [ebp - 0x24], 0
js 0x100beb42
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
movsd xmm0, qword [edx]
movsd qword [eax], xmm0
jmp 0x100bebab
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
cmp ebx, 0xa
ja 0x100beb58
mov byte [esi + 0x1b], bl
cmp eax, edx
jbe 0x100beb93
jmp 0x100beb9f
mov dword [ebp - 0x1c], edx
cmp ebx, 0x7ffffff0
jae 0x100bee37
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
or ebx, 0xf
inc ebx
push ebx
call fcn.10145ba4
add esp, 4
mov dword [esi + 0x10], eax
or ebx, 0x80000000
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [esi + 0x14], ebx
mov edx, dword [ebp - 0x1c]
cmp eax, edx
ja 0x100beb9f
lea ecx, [eax + ebx]
inc ecx
cmp ecx, edx
ja 0x100bee48
inc ebx
push ebx
push edx
push eax
call fcn.10148eb0
add esp, 0xc
mov dword [esi + 0x1c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], edi
mov edx, dword [ebp - 0x14]
mov dword [edx], esi
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov eax, esi
test ecx, ecx
je 0x100bebda
mov dword [edi + 4], ecx
mov eax, dword [edx]
push eax
push dword [edi + 8]
call fcn.100384c0
add esp, 8
inc dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
lea ebx, [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov edx, ebx
test ecx, ecx
mov esi, dword [ebp - 0x28]
je 0x100bec20
mov eax, ebx
lea edx, [ecx + 4]
cmp dword [ecx + 0x10], esi
cmovae edx, ecx
cmovae eax, ecx
mov ecx, dword [edx]
test ecx, ecx
jne 0x100bec00
mov edx, ebx
cmp eax, ebx
je 0x100bec20
cmp esi, dword [eax + 0x10]
cmovb eax, ebx
mov edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [0x101ce55c]
mov ecx, dword [0x101bd164]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x100bedeb
mov esi, dword [ebp - 0x18]
cmp byte [esi + 0xb], 0
jns 0x100bec52
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bedd9
mov ecx, dword [0x101ce554]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x101ce558]
mov edx, dword [0x101ce554]
mov dword [eax + edx*8 + 4], ecx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x14], eax
cmp ebx, eax
jne 0x100becd1
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x1c]
je 0x100bed53
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x20]
mov edi, dword [edx + 0x14]
test eax, eax
jne 0x100bece8
lea ebx, [ecx + 0x20]
mov esi, ebx
jmp 0x100bed01
mov dword [ebp - 0x10], ecx
mov esi, dword [ebx]
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x10]
call edi
add ebx, 4
cmp ebx, dword [ebp - 0x14]
je 0x100bec90
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xb], 0
mov ecx, eax
jns 0x100becb0
mov ecx, dword [eax]
jmp 0x100becb0
mov eax, dword [esi]
mov ebx, esi
test eax, eax
je 0x100bed01
mov esi, eax
mov eax, dword [eax + 0x10]
cmp edi, eax
jb 0x100bece0
jbe 0x100bedb3
mov eax, dword [esi + 4]
test eax, eax
jne 0x100bece8
lea ebx, [esi + 4]
mov dword [ebp - 0x10], esi
push 0x18
call fcn.10145ba4
add esp, 4
mov esi, eax
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov dword [ebx], esi
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
mov eax, esi
test ecx, ecx
je 0x100bed42
mov dword [edi + 0x1c], ecx
mov eax, dword [ebx]
push eax
push dword [edi + 0x20]
call fcn.100384c0
add esp, 8
inc dword [edi + 0x24]
jmp 0x100bedb6
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x28]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x101c1e84]
bt edx, ecx
jae 0x100bed78
push eax
call fcn.10069280
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x101c1e84]
bt ecx, eax
mov esi, dword [ebp - 0x28]
jae 0x100bed9f
push ebx
call fcn.10069180
add esp, 4
jmp 0x100bedab
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x101c9e84], 1
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], esi
jmp 0x100bedbc
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, esi
call fcn.10083990
jmp 0x100be836
test esi, esi
je 0x100bec80
call fcn.1007a6e0
jmp 0x100bec67
push 0x101ce55c
call fcn.10145c47
add esp, 4
cmp dword [0x101ce55c], 0xffffffff
jne 0x100bec44
mov dword [0x101ce554], 0xffffffff
mov dword [0x101ce558], 0
mov ecx, 0x101ce554
push 0
call fcn.1007a5a0
push 0x101ce55c
call fcn.10145cbd
add esp, 4
jmp 0x100bec44
call fcn.1015b4f0
int3
int3
int3
int3
int3