Function at 0x1009d090
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
mov ebx, edx
mov esi, ecx
mov eax, dword [0x101db014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 0x44]
test edx, edx
jne 0x1009d0b8
mov ebx, dword [esi + 0x24]
test ebx, ebx
je 0x1009d0db
cmp dword [ebx + 4], 0
je 0x1009d0db
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov ecx, 0x10
cmovne ecx, eax
cmp ecx, 0x10
mov dword [ebp - 0x5c], ecx
ja 0x1009d10b
lea edi, [ebp - 0x50]
jmp 0x1009d127
mov ebx, 0xb3
push ebx
call fcn.1009ac70
add esp, 4
push 0x26
call fcn.1009ac70
add esp, 4
xor ebx, ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1009d317
mov dword [eax], 0xffffffff
jmp 0x1009d317
lea eax, [ecx*4]
push eax
push 0
call fcn.1009a460
add esp, 8
mov edi, eax
test eax, eax
je 0x1009d26c
mov dword [ebp - 0x70], esi
mov esi, dword [ebx]
test esi, esi
mov dword [ebp - 0x58], ebx
je 0x1009d159
push dword [0x101de1f0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
je 0x1009d3c0
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [esi + 8], ebx
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x6a]
mov esi, dword [ebx + 4]
call dword [section..00cfg]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call ecx
add esp, 0xc
test eax, eax
je 0x1009d194
mov ecx, ebx
mov ebx, eax
mov eax, dword [ecx]
test eax, eax
je 0x1009d2c8
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1009d2c8
xor edx, edx
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x6e]
mov esi, ebx
sub ebx, edx
mov dword [ebp - 0x5c], edi
lea eax, [edi + edx*4]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax + 4]
mov dword [ebp - 0x68], eax
mov edi, edx
call dword [section..00cfg]
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0x60]
push dword [ebp - 0x68]
call ecx
add esp, 0x10
test eax, eax
jne 0x1009d276
mov ecx, dword [ebp - 0x54]
lea eax, [ecx + edi]
cmp dword [ebp + 0x10], 0
jne 0x1009d28f
mov ebx, esi
cmp eax, esi
jb 0x1009d28f
mov esi, eax
lea eax, [ebx*8]
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x50]
cmp ecx, edx
je 0x1009d210
push eax
push ecx
call fcn.1009a980
add esp, 8
mov edi, eax
jmp 0x1009d240
push eax
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x1009d24c
mov edi, eax
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x50]
movups xmm1, xmmword [ebp - 0x40]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
add ebx, ebx
mov edx, esi
test edi, edi
jne 0x1009d199
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov ebx, 2
test eax, eax
je 0x1009d0e0
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x1009d0e0
mov ebx, 2
jmp 0x1009d0e0
mov ebx, eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
test eax, eax
je 0x1009d28a
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
mov edi, dword [ebp - 0x5c]
jmp 0x1009d2c8
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x72]
mov edi, dword [ebp - 0x58]
mov esi, dword [edi + 4]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
mov ebx, eax
mov eax, dword [edi]
test eax, eax
mov edi, dword [ebp - 0x5c]
je 0x1009d2c4
push eax
call sym.nss3.dll_PR_Unlock
add esp, 4
test ebx, ebx
je 0x1009d32b
lea eax, [ebp - 0x50]
cmp edi, eax
je 0x1009d2d8
push edi
call fcn.1009a580
add esp, 4
lea eax, [ebx - 0x12]
cmp eax, 0xf
ja 0x1009d2ea
mov ecx, 0xc003
bt ecx, eax
jb 0x1009d2fe
lea eax, [ebx - 0xd0]
cmp eax, 2
jb 0x1009d2fe
cmp ebx, 0x54
jne 0x1009d0e0
push 0x1b
call fcn.1009ac70
add esp, 4
xor ebx, ebx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1009d317
mov dword [eax], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1014dc80
mov eax, ebx
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x1009d37b
lea eax, [esi*4 + 4]
push eax
push 0
call fcn.1009a460
add esp, 8
test eax, eax
je 0x1009d3a5
mov ebx, eax
test esi, esi
jle 0x1009d3a7
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x6c]
xor esi, esi
mov dword [ebp - 0x60], eax
push dword [edi + esi*4]
push dword [ebp - 0x58]
push dword [ebp - 0x70]
call fcn.1009e9a0
add esp, 0xc
mov dword [ebx + esi*4], eax
test eax, eax
je 0x1009d384
inc esi
mov eax, dword [ebp - 0x60]
cmp eax, esi
jne 0x1009d359
jmp 0x1009d3a7
push 0x1b
call fcn.1009ac70
jmp 0x1009d3a2
cmp esi, 2
jb 0x1009d39c
inc esi
push dword [ebx + esi*4 - 8]
call fcn.1009ea70
add esp, 4
dec esi
cmp esi, 2
jg 0x1009d38a
push ebx
call fcn.1009a580
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x50]
cmp edi, eax
je 0x1009d30a
push edi
call fcn.1009a580
add esp, 4
jmp 0x1009d30a
sub esp, 0x10
movaps xmm0, xmmword [0x1019c190]
movups xmmword [esp], xmm0
call fcn.10072140
add esp, 0x10
mov ebx, eax
jmp 0x1009d149