Function at 0x100be820
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 0x100beddd
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 0x100be96a
mov ecx, dword [ebp - 0x24]
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
test cl, cl
jns 0x100be880
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x100be88e
cmp dword [ebp - 0x10], 0
je 0x100bee4f
mov edx, esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
jmp 0x100be8a8
mov edx, esi
mov esi, dword [esi]
test esi, esi
je 0x100be909
movzx ebx, byte [esi + 0x1b]
test bl, bl
jns 0x100be8c0
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
test ebx, ebx
jne 0x100be8c7
jmp 0x100be8cf
lea eax, [esi + 0x10]
test ebx, ebx
je 0x100be8cf
test eax, eax
je 0x100bee4c
cmp ebx, edi
mov ecx, edi
cmovb ecx, ebx
test ecx, ecx
je 0x100be900
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 0x100be900
jns 0x100be8a0
jmp 0x100be904
cmp ebx, edi
jae 0x100be8a0
add esi, 4
jmp 0x100be8a2
mov esi, dword [ebp - 0x14]
cmp edx, esi
je 0x100be96a
movzx ebx, byte [edx + 0x1b]
test bl, bl
jns 0x100be924
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0x10]
test ebx, ebx
jne 0x100be92b
jmp 0x100be933
lea eax, [edx + 0x10]
test ebx, ebx
je 0x100be933
test eax, eax
je 0x100bee52
cmp edi, ebx
mov ecx, ebx
cmovb ecx, edi
test ecx, ecx
je 0x100be966
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 0x100be966
js 0x100be96a
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
jmp 0x100bebff
cmp edi, ebx
jae 0x100be958
push 0xc
call fcn.10145ba4
add esp, 4
mov edx, eax
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
js 0x100be992
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
movsd xmm0, qword [ecx]
movsd qword [edx], xmm0
jmp 0x100be9f5
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
cmp ebx, 0xa
ja 0x100be9aa
mov byte [edx + 0xb], bl
mov eax, edx
cmp eax, esi
jbe 0x100be9da
jmp 0x100be9e6
cmp ebx, 0x7ffffff0
jae 0x100bee47
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 0x100be9e6
lea ecx, [eax + ebx]
inc ecx
cmp ecx, esi
ja 0x100bee55
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 0x100beb27
movzx edx, byte [eax + 0x1b]
test dl, dl
jns 0x100bea18
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
test edx, edx
jne 0x100bea1f
jmp 0x100bea27
lea ebx, [eax + 0x10]
test edx, edx
je 0x100bea27
test ebx, ebx
je 0x100beb17
mov ecx, dword [ebp - 0x24]
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test cl, cl
jns 0x100bea3e
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
test esi, esi
mov dword [ebp - 0x10], esi
je 0x100bea53
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], 0
mov ecx, ebx
jne 0x100bea60
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 0x100bea90
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 0x100beaa0
jns 0x100beac0
jmp 0x100beaa7
cmp esi, edx
jb 0x100beaa7
jmp 0x100beae0
mov eax, esi
cmp dword [ebp - 0x10], esi
jae 0x100beac0
mov eax, dword [edi]
mov ecx, edi
test eax, eax
mov esi, dword [ebp - 0x10]
jne 0x100beaee
jmp 0x100beb27
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.10147f9d
mov edx, esi
add esp, 0xc
test eax, eax
je 0x100beae0
mov esi, dword [ebp - 0x10]
js 0x100beae7
jmp 0x100beb1a
mov esi, dword [ebp - 0x10]
cmp edx, esi
jae 0x100beb1a
mov eax, dword [edi + 4]
test eax, eax
je 0x100beb24
movzx edx, byte [eax + 0x1b]
test dl, dl
jns 0x100beb00
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
jmp 0x100beb03
lea ecx, [eax + 0x10]
mov edi, eax
test edx, edx
je 0x100bea60
mov edi, eax
test ecx, ecx
jne 0x100bea60
int3
mov esi, edi
mov edi, dword [ebp - 0x20]
jmp 0x100bebf9
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 0x100beb52
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
movsd xmm0, qword [edx]
movsd qword [eax], xmm0
jmp 0x100bebbb
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
cmp ebx, 0xa
ja 0x100beb68
mov byte [esi + 0x1b], bl
cmp eax, edx
jbe 0x100beba3
jmp 0x100bebaf
mov dword [ebp - 0x1c], edx
cmp ebx, 0x7ffffff0
jae 0x100bee47
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 0x100bebaf
lea ecx, [eax + ebx]
inc ecx
cmp ecx, edx
ja 0x100bee58
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 0x100bebea
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 0x100bec30
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 0x100bec10
mov edx, ebx
cmp eax, ebx
je 0x100bec30
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 0x100bedfb
mov esi, dword [ebp - 0x18]
cmp byte [esi + 0xb], 0
jns 0x100bec62
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
push dword [0x101bac5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x100bede9
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 0x100bece1
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x1c]
je 0x100bed63
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x20]
mov edi, dword [edx + 0x14]
test eax, eax
jne 0x100becf8
lea ebx, [ecx + 0x20]
mov esi, ebx
jmp 0x100bed11
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 0x100beca0
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xb], 0
mov ecx, eax
jns 0x100becc0
mov ecx, dword [eax]
jmp 0x100becc0
mov eax, dword [esi]
mov ebx, esi
test eax, eax
je 0x100bed11
mov esi, eax
mov eax, dword [eax + 0x10]
cmp edi, eax
jb 0x100becf0
jbe 0x100bedc3
mov eax, dword [esi + 4]
test eax, eax
jne 0x100becf8
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 0x100bed52
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 0x100bedc6
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 0x100bed88
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 0x100bedaf
push ebx
call fcn.10069180
add esp, 4
jmp 0x100bedbb
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x101c9e84], 1
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], esi
jmp 0x100bedcc
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 0x100be846
test esi, esi
je 0x100bec90
call fcn.1007a6e0
jmp 0x100bec77
push 0x101ce55c
call fcn.10145c47
add esp, 4
cmp dword [0x101ce55c], 0xffffffff
jne 0x100bec54
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 0x100bec54
call fcn.1015b4f0
int3
int3
int3
int3
int3