Function at 0x100b6d2a
Capabilities:
Get thread local storage value

Disassembly:
push 0xcc
mov eax, 0x10045582
call fcn.10041ac9
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, 0x40ec6
mov ebx, dword [ebp + 0x14]
test edi, edi
js 0x100b6d5f
cmp edi, eax
jne 0x100b6f0d
cmp dword [esi + 0x290], 0
je 0x100b6f0d
cmp edi, eax
je 0x100b6d6f
cmp edi, 0x80040e1e
jne 0x100b6efd
mov ecx, dword [esi + 0x154]
call fcn.1005145f
test eax, eax
jne 0x100b6d91
mov ecx, dword [esi + 0x158]
call fcn.1005145f
test eax, eax
je 0x100b6ef5
push 0
push 0x11
push esi
lea ecx, [ebp - 0xb8]
call fcn.1005481a
xor ecx, ecx
mov dword [ebp - 4], ecx
movzx eax, word [esi + 0x23c]
mov dword [ebp - 0xd4], eax
movzx eax, word [esi + 0x23e]
mov dword [ebp - 0xd8], eax
xor eax, eax
mov word [ebp - 0xbc], ax
mov word [ebp - 0xc0], ax
mov eax, 0x400b
mov word [ebp - 0x98], ax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x90], eax
mov eax, 0x4003
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0xd0], ecx
mov ecx, dword [esi + 0x158]
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x24], eax
call fcn.1005145f
test eax, eax
je 0x100b6e51
mov ecx, dword [esi + 0x158]
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.1005ad2e
mov dword [ebp - 0xc8], eax
test eax, eax
js 0x100b6ec5
mov ecx, dword [esi + 0x154]
call fcn.1005145f
test eax, eax
je 0x100b6e8e
mov ecx, dword [esi + 0x154]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x1c], 1
push eax
call fcn.1005ad2e
jmp 0x100b6e94
mov eax, dword [ebp - 0xc8]
test eax, eax
js 0x100b6ec5
cmp word [ebp - 0xbc], 0
jne 0x100b6eac
cmp word [ebp - 0xc0], 0
je 0x100b6ec5
test ebx, ebx
je 0x100b6eb3
mov byte [ebx], 1
lea ecx, [ebp - 0xb8]
call fcn.10054b8d
xor eax, eax
jmp 0x100b7047
mov eax, dword [ebp - 0xd4]
mov word [esi + 0x23c], ax
mov eax, dword [ebp - 0xd8]
mov word [esi + 0x23e], ax
test ebx, ebx
je 0x100b6ee6
mov byte [ebx], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb8]
call fcn.10054b8d
cmp edi, 0x80040e1e
je 0x100b6f12
cmp edi, 0x80040e12
je 0x100b6f12
test edi, edi
js 0x100b7045
mov ebx, dword [ebp + 0xc]
jmp 0x100b6f1c
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.OLEAUT32.dll_CreateErrorInfo]
push ecx
push ecx
push dword [ebp + 0x10]
mov ecx, esi
push ebx
push edi
call fcn.100a3b49
mov edi, eax
test edi, edi
jns 0x100b6f98
test byte [0x100e4068], 2
je 0x100b7045
lea ecx, [esi + 0x338]
call fcn.10050714
push 0x2601
cmp eax, 0xffffffff
je 0x100b6f7b
lea ecx, [esi + 0x338]
call fcn.10050714
push eax
push 0x1002db18
push 0x980409
push dword [0x100e7114]
call fcn.100d931d
add esp, 0x14
jmp 0x100b7045
push 0x1002db80
push 0x980409
push dword [0x100e7114]
call fcn.100d931d
add esp, 0x10
jmp 0x100b7045
test ebx, ebx
jne 0x100b703d
mov eax, dword [ebp + 0x10]
test al, al
jne 0x100b6fb0
cmp word [esi + 0x23c], bx
jmp 0x100b6fb7
cmp word [esi + 0x23e], bx
jne 0x100b6fdf
cmp word [esi + 0x23c], bx
je 0x100b6fcb
cmp word [esi + 0x23e], bx
jne 0x100b6fdf
mov ecx, esi
test al, al
jne 0x100b6fd8
call fcn.100bc277
jmp 0x100b7045
call fcn.100bc1a2
jmp 0x100b7045
mov eax, dword [0x100e4064]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100b7036
mov eax, dword [0x100e4064]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 8], ebx
je 0x100b7036
mov eax, dword [0x100e4064]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100e52dc]
call esi
mov eax, dword [0x100e4064]
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 8], ebx
mov eax, 0x800a0bcd
jmp 0x100b7047
xor eax, eax
mov dword [esi + 0x23c], eax
mov eax, edi
call fcn.10041a78
ret 0x18