Function at 0x100f04a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x101d2014]
mov edi, dword [ebp + 0xc]
xor eax, ebp
cmp dword [ebp + 0x14], 0
mov dword [esp + 0x20], eax
mov ecx, dword [0x101d580c]
mov esi, dword [0x101d5808]
je 0x100f0530
xor ebx, ebx
push 2
mov dword [esp + 8], ecx
push ecx
push esi
push ebx
push ebx
call fcn.101077e0
add esp, 0x14
test eax, eax
je 0x100f05b6
mov esi, eax
push 0x58
push dword [eax]
call fcn.100ff2b0
add esp, 8
test eax, eax
je 0x100f05c0
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov edx, edi
mov ecx, 9
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test eax, eax
mov eax, dword [edx + 4]
je 0x100f05d3
lea ecx, [ebx + 0x30]
push eax
push dword [edx + 8]
push ecx
push dword [ebx]
call fcn.100ffe70
add esp, 0x10
jmp 0x100f05dc
mov eax, dword [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x100f0562
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x100f0562
mov edi, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.10109930
mov ecx, edi
add esp, 8
mov edi, eax
test ebx, ebx
je 0x100f057e
test edi, edi
jne 0x100f057e
lea eax, [esp + 0x18]
push eax
push ebx
mov edi, ecx
call fcn.1010ba80
mov ecx, edi
add esp, 8
mov edi, eax
test edi, edi
je 0x100f05cb
lea eax, [edi + 0x30]
lea ecx, [esp + 0x18]
push 0
push ecx
push eax
call fcn.100fff60
add esp, 0xc
test eax, eax
je 0x100f0751
mov ecx, edi
xor edx, edx
call fcn.101064f0
mov ebx, eax
test eax, eax
jne 0x100f073c
push edi
jmp 0x100f076c
call fcn.100f0030
jmp 0x100f073c
call fcn.100f0030
push esi
jmp 0x100f0732
mov edi, dword [ebp + 0xc]
jmp 0x100f04cc
mov dword [ebx + 0x30], eax
mov eax, dword [edx + 8]
mov dword [ebx + 0x34], eax
mov ecx, ebx
xor edx, edx
call fcn.101064f0
test eax, eax
je 0x100f072c
mov esi, eax
lea eax, [ebx + 0x38]
push dword [esi + 0x4c]
push dword [esi + 0x50]
push eax
push dword [ebx]
call fcn.100ffe70
add esp, 0x10
lea eax, [ebx + 0x40]
push dword [esi + 0x58]
push dword [esi + 0x5c]
push eax
push dword [ebx]
call fcn.100ffe70
add esp, 0x10
xor eax, eax
lea edi, [esp + 8]
mov dword [edi + 4], eax
mov dword [edi], eax
mov dword [edi + 8], eax
mov eax, esi
add eax, 0x3c
push edi
push eax
call fcn.100e7940
add esp, 8
mov eax, dword [edi + 4]
test eax, eax
je 0x100f0731
mov edi, dword [ebp + 0x10]
mov ecx, ebx
add ecx, 0x48
push eax
push dword [esp + 0x14]
push ecx
push dword [ebx]
call fcn.100ffe70
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100f0669
push eax
call dword [sym.imp.mozglue.dll_free]
add esp, 4
test edi, edi
je 0x100f0687
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push edi
push 5
push dword [ebx]
call fcn.10100820
add esp, 0x10
mov dword [ebx + 0x20], eax
mov esi, dword [esi + 0x118]
test esi, esi
je 0x100f06b0
cmp byte [esi], 0
je 0x100f06b0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
push eax
push esi
push 2
push dword [ebx]
call fcn.10100820
add esp, 0x10
mov dword [ebx + 0x50], eax
push ebx
push dword [esp + 8]
call fcn.101056c0
add esp, 8
test eax, eax
je 0x100f072c
mov esi, eax
push ebx
call fcn.10104ae0
add esp, 4
mov ecx, esi
xor edx, edx
call fcn.101064f0
test eax, eax
je 0x100f076b
mov edi, dword [0x101d5788]
mov ebx, eax
push dword [0x101d4d30]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test eax, eax
je 0x100f077b
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [edi + 8], esi
mov dword [ebx + 0x150], 1
mov dword [ebx + 0x14c], 0
push dword [0x101d5788]
call sym.nss3.dll_PR_Unlock
add esp, 4
jmp 0x100f073c
call fcn.100f0030
push ebx
call fcn.101079e0
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.10192ef0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.10104ae0
add esp, 4
push 0
push 0xffffe08a
call sym.nss3.dll_PR_SetError
add esp, 8
jmp 0x100f073a
push esi
call fcn.10104ae0
add esp, 4
call fcn.100f0030
jmp 0x100f073a
xor eax, eax
push eax
push eax
push 1
push eax
call fcn.100e2c70
add esp, 0x10
mov esi, eax
jmp 0x100f06fb