Function at 0x102bfc32
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, ecx
test byte [ebx + 0x38], 2
mov dword [ebp - 0x18], ebx
je 0x102bfefa
push esi
push edi
push 8
lea eax, [ebp - 0x38]
push eax
call fcn.102c024a
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
add dword [ebp - 0x38], eax
add dword [ebp - 0x30], eax
mov eax, dword [esi + 0x10]
add dword [ebp - 0x34], eax
add dword [ebp - 0x2c], eax
push dword [esi]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
mov edi, dword [sym.imp.USER32.dll_IsRectEmpty]
lea eax, [ebp - 0x28]
push eax
call edi
test eax, eax
jne 0x102bfef8
lea eax, [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x102bfef8
mov eax, dword [esi + 8]
test eax, eax
je 0x102bfcb0
test dword [ebx + 0x38], 0x20000000
je 0x102bfef8
mov ecx, dword [esi]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
xor edi, edi
test byte [ebx + 0x38], 8
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x3c], eax
mov byte [ebp + 0xb], 0xff
je 0x102bfceb
mov ecx, ebx
call fcn.102bf757
mov al, byte [eax + 0xc]
mov byte [ebp + 0xb], al
test al, al
je 0x102bfef8
mov eax, dword [esi + 4]
cmp dword [eax + 0x18], edi
jne 0x102bfd6d
cmp byte [ebp + 0xb], 0xff
je 0x102bfd6d
push dword [0x1039deb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [eax + 0x68]
call fcn.102ca07c
mov edi, eax
test edi, edi
je 0x102bfef8
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x28]
call fcn.1025392e
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.1025395b
mov eax, dword [esi + 4]
mov dword [ebp - 0x48], edi
mov edx, dword [eax + 0x10]
mov byte [eax + 0x2c], 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x28]
push 0xcc0020
mov byte [edi + 0x2c], 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push edx
push eax
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [edi + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 4]
cmp dword [eax + 0x18], 0
mov byte [ebp - 1], 0
je 0x102bfd8d
push dword [ebp - 0x34]
mov ecx, dword [eax + 0x18]
push dword [ebp - 0x38]
push ebx
call fcn.10258a4e
mov byte [ebp - 1], 1
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.102bfadb
cmp eax, 2
je 0x102bfdb2
cmp eax, 3
jne 0x102bfed6
cmp dword [ebp - 0x44], 0
je 0x102bfdc1
test dword [ebx + 0x38], 0x100
je 0x102bfdd0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.102bfa32
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x18], 0
je 0x102bfde4
mov ecx, dword [eax + 0x18]
call fcn.102579f8
mov byte [ebp - 1], al
mov ecx, dword [ebp - 0x44]
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x38]
test eax, 0x100000
je 0x102bfe07
test eax, 0x20000000
je 0x102bfe07
xor ecx, ecx
mov dword [ebp - 0x10], 2
cmp ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
jge 0x102bfe48
mov eax, dword [ebp - 8]
lea ecx, [ebx + 0x20]
mov dword [ebp - 0x44], eax
call fcn.102bc7ab
jmp 0x102bfe36
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x4c]
push eax
call fcn.102bfc32
mov ecx, dword [ebp - 0xc]
add ecx, 0x20
call fcn.102bc797
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x102bfe1f
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x102bfe0f
push dword [ebp - 0x14]
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.102bfbd2
test edi, edi
je 0x102bfecf
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi + 0x10]
sub ecx, dword [ebp - 0x28]
mov byte [ebp - 6], al
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov byte [edi + 0x2c], 1
mov ebx, dword [ebp - 0x20]
mov esi, dword [esi + 4]
sub ebx, dword [ebp - 0x28]
mov byte [ebp - 8], 0
mov byte [ebp - 7], 0
mov byte [ebp - 5], 0
push dword [ebp - 8]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x24]
push eax
push ecx
mov byte [esi + 0x2c], 1
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp + 8]
push edx
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [esi + 0x10]
call fcn.102ce2bf
push dword [0x1039deb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
lea ecx, [eax + 0x68]
call fcn.102ca039
and dword [ebp - 0x48], 0
mov ebx, dword [ebp - 0x18]
and dword [ebx + 0x38], 0xefffffff
cmp byte [ebp - 1], 0
je 0x102bfef8
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x102bfef8
cmp dword [eax + 0x18], 0
je 0x102bfef8
push dword [ebp - 0x34]
mov ecx, dword [eax + 0x18]
push dword [ebp - 0x38]
push ebx
call fcn.10258a6e
pop edi
pop esi
pop ebx
leave
ret 4