Function at 0x101fe4b9
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x1065e7ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x80], eax
mov eax, dword [0x10669efc]
xor edi, edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x94], edi
test eax, eax
je 0x101fe506
push eax
call fcn.1011565a
mov dword [0x10669efc], edi
mov eax, dword [0x10669f00]
test eax, eax
je 0x101fe51b
mov dword [ebp - 0x94], eax
mov dword [0x10669f00], edi
cmp dword [esi + 0x7c], edi
je 0x101fe52b
push dword [esi + 0x7c]
call fcn.1011565a
mov dword [esi + 0x7c], edi
push ebx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x101fe542
mov ecx, esi
call fcn.101fe80b
jmp 0x101fe7f8
call fcn.1019b49a
push eax
push esi
lea ecx, [ebp - 0xbc]
call fcn.101fb55f
mov dword [ebp - 0x8c], edi
xor eax, eax
mov dword [ebp - 0x88], edi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x84]
test edi, edi
je 0x101fe5bc
push 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.101fbbb3
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x88], eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x101fe59e
lea ecx, [eax - 0x20]
jmp 0x101fe5a0
xor ecx, ecx
test ecx, ecx
je 0x101fe5c2
test eax, eax
je 0x101fe5ad
lea ecx, [eax - 0x20]
jmp 0x101fe5af
xor ecx, ecx
push 0xc
lea eax, [ebp - 0x24]
push eax
call fcn.101fbbb3
jmp 0x101fe5c2
mov dword [ebp - 0x84], esi
mov eax, dword [ebp + 0x14]
and eax, 4
mov dword [ebp - 0x9c], eax
je 0x101fe5e5
mov eax, dword [ebx]
neg eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ebx + 4]
neg eax
mov dword [ebp - 0x88], eax
xor eax, eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x90], eax
call fcn.10194e6d
push dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
call fcn.10194e0e
push 0xb
pop ecx
mov esi, eax
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
call fcn.102c6961
test eax, eax
je 0x101fe631
call fcn.10258f30
mov esi, dword [ebp - 0x80]
mov ecx, eax
push 1
push esi
mov edx, dword [eax]
call dword [edx]
push esi
mov dword [ebp - 0x90], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov esi, dword [ebp - 0x98]
test dword [esi + 0x38], 0x80000000
je 0x101fe69e
test byte [ebp + 0x14], 2
jne 0x101fe69e
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
sub ecx, 0xf
mov eax, dword [ebx + 8]
sub edx, 0xf
mov edi, dword [ebx + 0xc]
add eax, 0xf
add edi, 0xf
cmp ecx, dword [esi + 0x40]
cmovle ecx, dword [esi + 0x40]
cmp eax, dword [esi + 0x48]
mov dword [ebp - 0x14], ecx
cmovge eax, dword [esi + 0x48]
mov dword [ebp - 0xc], eax
cmp ecx, eax
jge 0x101fe68d
cmp edx, dword [esi + 0x44]
cmovle edx, dword [esi + 0x44]
cmp edi, dword [esi + 0x4c]
mov dword [ebp - 0x10], edx
cmovge edi, dword [esi + 0x4c]
mov dword [ebp - 8], edi
cmp edx, edi
jl 0x101fe69b
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x14]
xor edi, edi
test byte [ebp + 0x14], 2
jne 0x101fe6d5
push dword [0x1065a1cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ebx
lea ecx, [eax + 0x68]
call fcn.1024d572
mov edi, eax
test edi, edi
je 0x101fe7ed
push dword [ebx + 4]
mov ecx, edi
push dword [ebx]
call fcn.1019723f
mov ecx, edi
jmp 0x101fe6ed
cmp dword [ebp - 0x9c], edi
je 0x101fe6ea
push dword [ebx + 4]
lea ecx, [ebp - 0x50]
push dword [ebx]
call fcn.1019723f
lea ecx, [ebp - 0x50]
push ebx
call fcn.101971fe
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x50]
test edi, edi
mov dword [ebp - 0xb0], ebx
cmovne edx, edi
sub eax, dword [esi + 0x40]
xor ecx, ecx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [esi + 0x44]
push ecx
push ecx
push ebx
push edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa0], eax
call fcn.10195a10
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0xb0]
push eax
call fcn.101fcc67
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x101fe75b
push 0
push eax
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, esi
call fcn.101fe80b
test edi, edi
je 0x101fe7b5
push 0xcc0020
mov byte [edi + 0x28], 1
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [ebx + 0xc]
push ecx
push edx
push dword [edi + 0x10]
sub eax, ecx
push eax
mov eax, dword [ebx + 8]
sub eax, edx
push eax
mov eax, dword [ebp - 0x88]
add eax, ecx
push eax
mov eax, dword [ebp - 0x8c]
add eax, edx
push eax
push dword [ebp - 0x80]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [0x1065a1cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
lea ecx, [eax + 0x68]
call fcn.1024d5a1
mov eax, dword [ebp - 0x94]
test eax, eax
je 0x101fe7c5
push eax
call fcn.1011565a
mov eax, dword [esi + 0x80]
test eax, eax
je 0x101fe7ed
cmp eax, 0xc30
jne 0x101fe7db
call fcn.101fe0d5
push dword [esi + 0x80]
call fcn.1011565a
and dword [esi + 0x80], 0
lea ecx, [ebp - 0xbc]
call fcn.101fb587
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.102790a9
mov esp, ebp
pop ebp
ret 0x10