Function at 0x301b45ec
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx + 0x38]
test cl, 2
je 0x301b4ce6
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x24]
xor edx, edx
cmp eax, edx
je 0x301b461d
test ecx, 0x20000000
je 0x301b4ce5
test cx, cx
push esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0x58], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x5c], esi
mov esi, dword [ebx + 0x14]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebx + 0x1c]
mov dword [ebp - 0x44], esi
mov esi, dword [ebx + 0x20]
mov dword [ebp - 0x40], esi
mov esi, dword [ebx + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], edx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x38], edx
js 0x301b47a9
test cl, 8
je 0x301b48c7
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.301b3b13
cmp byte [eax + 0xc], 0
je 0x301b4ce3
cmp dword [ebx + 0x14], 0
jne 0x301b4798
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push eax
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.301b3ba2
test dword [esi + 0x38], 0x100000
mov byte [ebp + 0xb], 1
je 0x301b46df
mov ecx, esi
call fcn.3015fefc
test byte [eax + 0x6c], 2
je 0x301b46df
call sym.OFFDIAG.exe_public_virtual:_bool___thiscall_NetUI::NativeHWNDHost::Deactivating_void_
test al, al
je 0x301b46df
mov ecx, esi
call fcn.3015fefc
lea esi, [eax + 0x84]
mov ecx, esi
mov byte [esi + 0x58], 1
call fcn.301ecc2c
mov dword [ebp - 4], esi
mov byte [ebp + 0xb], 0
jmp 0x301b4705
push dword [0x3026b738]
call edi
mov ecx, dword [ebx + 8]
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea ecx, [esi + 0x6c]
call fcn.301b3f3e
test eax, eax
jl 0x301b4760
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, dword [ebp - 4]
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 8]
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebx + 8]
call dword [eax + 4]
test eax, eax
jl 0x301b4745
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x301b4745
movzx ecx, byte [ebp + 0xb]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], 1
jmp 0x301b489a
cmp byte [ebp + 0xb], 0
je 0x301b475c
push dword [0x3026b738]
call edi
push esi
lea ecx, [eax + 0x6c]
call fcn.301b3fc5
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x301b48c7
mov esi, dword [ebp - 0x14]
test byte [esi + 0x38], 8
je 0x301b48da
mov ecx, esi
call fcn.301b3b13
test byte [eax + 8], 1
je 0x301b48da
mov ecx, dword [ebp - 4]
push dword [eax + 0x10]
mov edx, dword [ecx]
call dword [edx + 8]
jmp 0x301b48da
mov ecx, esi
call fcn.301b3b13
cmp byte [eax + 0xc], 0xff
je 0x301b48c7
push dword [0x3026b738]
call edi
mov ecx, dword [ebx + 8]
mov esi, eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ecx]
call dword [eax + 4]
push eax
lea ecx, [esi + 0x6c]
call fcn.301eccc8
test eax, eax
jl 0x301b4ce3
cmp dword [ebp + 8], 0
je 0x301b4ce3
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp + 8]
push 1
lea ecx, [ebp - 0xb4]
mov dword [ebp - 4], eax
call fcn.301b329d
mov ecx, dword [ebp - 0x14]
push 4
lea eax, [ebp - 0x84]
push eax
call fcn.301b722a
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xb4]
push eax
call fcn.301b33cd
push 0
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0xb4]
call fcn.301ec676
push dword [ebx + 0x20]
lea esi, [ebp - 0xd4]
push dword [ebx + 0x1c]
lea edi, [ebp - 0xc4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc4]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.301b3ba2
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 8]
lea edx, [ebp - 0xc4]
push edx
push dword [ebx + 8]
call dword [eax + 4]
test eax, eax
jl 0x301b48ab
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x301b48ab
xor eax, eax
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x40], eax
jmp 0x301b4760
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [ebp + 8]
lea ecx, [eax + 0x6c]
call fcn.301ecd06
jmp 0x301b4ce3
mov esi, dword [ebp - 0x14]
test dword [esi + 0x38], 0x100000
je 0x301b48da
mov ecx, esi
call fcn.301b5038
push 8
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.301b722a
xor eax, eax
cmp dword [ebp - 0x34], eax
jne 0x301b48f6
cmp dword [ebp - 0x30], eax
mov dword [ebp + 8], eax
je 0x301b48fd
mov dword [ebp + 8], 1
fild dword [ebp - 0x34]
push dword [ebx + 0xc]
and dword [ebp - 0x10], eax
lea ecx, [ebp - 0xfc]
fstp dword [ebp - 8]
fild dword [ebp - 0x30]
fstp dword [ebp - 0xc]
call fcn.301b3bd8
mov edi, 0x800000
test dword [esi + 0x38], edi
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x54], eax
je 0x301b4965
mov ecx, esi
call fcn.301b32d2
push 1
lea ecx, [ebp - 0x124]
mov dword [ebp - 0x10], eax
call fcn.301b329d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x124]
push eax
call fcn.301b3224
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0xfc]
call fcn.301ec3d4
cmp dword [ebp + 8], 0
je 0x301b4989
fld dword [ebp - 0xc]
push ecx
fchs
push ecx
fstp dword [esp + 4]
lea ecx, [ebp - 0xfc]
fld dword [ebp - 8]
fchs
fstp dword [esp]
call fcn.301ec997
test dword [esi + 0x38], edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x60], eax
je 0x301b49a7
push 1
push dword [ebx + 4]
lea ecx, [ebp - 0xfc]
push eax
call fcn.301ec676
jmp 0x301b49cc
cmp dword [ebp + 8], 0
mov esi, dword [ebx]
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
je 0x301b49e5
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
neg ecx
add dword [ebp - 0x24], ecx
add dword [ebp - 0x1c], ecx
neg eax
add dword [ebp - 0x20], eax
add dword [ebp - 0x18], eax
xor eax, eax
cmp dword [ebp + 8], eax
je 0x301b49e5
mov ecx, dword [ebp - 0x34]
sub dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x30]
sub dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x34]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jg 0x301b49fd
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x2c]
cmp edx, eax
mov dword [ebp - 0x1c], edx
jl 0x301b4a0d
mov dword [ebp - 0x1c], eax
cmp ecx, dword [ebp - 0x1c]
jge 0x301b4a3e
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x30]
cmp ecx, eax
mov dword [ebp - 0x20], ecx
jg 0x301b4a22
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
mov dword [ebp - 0x18], ecx
jl 0x301b4a32
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
jge 0x301b4a3e
mov al, 1
jmp 0x301b4a4e
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
xor al, al
xor edi, edi
test al, al
je 0x301b4c78
push dword [ebx + 0x10]
lea ecx, [ebp - 0xb4]
call fcn.301b3bd8
cmp dword [ebp + 8], edi
lea eax, [ebp - 0xb4]
mov dword [ebp - 0x50], eax
je 0x301b4a8a
fld dword [ebp - 0xc]
push ecx
push ecx
fstp dword [esp + 4]
mov ecx, eax
fld dword [ebp - 8]
fstp dword [esp]
call fcn.301ec997
mov esi, dword [ebp - 0x14]
test dword [esi + 0x38], 0x800000
je 0x301b4aa5
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xb4]
push eax
call fcn.301b31c1
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xb4]
call fcn.301ec595
fild dword [ebp - 0x44]
test byte [esi + 0x14], 1
mov ebx, 0x4000000
fadd dword [ebp - 0x7c]
fstp dword [ebp - 0x7c]
fild dword [ebp - 0x40]
fadd dword [ebp - 0x78]
fstp dword [ebp - 0x78]
jne 0x301b4ae2
mov eax, dword [esi + 0x38]
test eax, 0x1000000
jne 0x301b4ae2
test ebx, eax
jne 0x301b4af1
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx]
lea edx, [ebp - 0x8c]
push edx
call dword [eax + 0xc]
and dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.301b3fdb
cmp eax, 2
mov dword [ebp - 0x10], eax
je 0x301b4b18
cmp eax, 3
jne 0x301b4c5d
and dword [ebp - 8], edi
test dword [esi + 0x38], 0x10000
je 0x301b4b2f
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x38], edi
je 0x301b4b3c
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp dword [ebp - 0x3c], edi
je 0x301b4b49
test word [esi + 0x38], 0x100
je 0x301b4b58
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.301b4334
mov eax, dword [esi + 0x38]
test ebx, eax
jne 0x301b4b8a
lea ecx, [esi + 0x20]
xor ebx, ebx
call fcn.301b2239
jmp 0x301b4b82
xor eax, eax
push eax
push ebx
lea eax, [ebp - 0x60]
push eax
mov ecx, edi
call fcn.301b43ff
lea ecx, [edi + 0x20]
call fcn.301b2225
mov edi, eax
test edi, edi
jne 0x301b4b6b
jmp 0x301b4bd8
test eax, 0x100000
mov ebx, dword [ebp - 0x3c]
lea ecx, [ebx + 1]
mov dword [ebp + 8], ecx
je 0x301b4bd3
test eax, 0x20000000
je 0x301b4bd3
xor ebx, ebx
mov dword [ebp + 8], 2
jmp 0x301b4bd3
lea ecx, [esi + 0x20]
mov dword [ebp - 0x3c], ebx
call fcn.301b2239
jmp 0x301b4bcc
lea eax, [ebp - 0x60]
push eax
mov ecx, edi
call fcn.301b45ec
lea ecx, [edi + 0x20]
call fcn.301b2225
mov edi, eax
test edi, edi
jne 0x301b4bb9
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x301b4bac
test dword [esi + 0x38], 0x10000
je 0x301b4bec
mov ecx, dword [ebp - 0x58]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ebx, dword [ebp - 4]
xor edi, edi
inc edi
test ebx, ebx
je 0x301b4c5d
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0xc]
cmp dword [ebp - 0x38], 0
mov byte [ebp + 8], 0xff
mov byte [ebp - 8], 0
je 0x301b4c3e
test word [esi + 0x38], 0x8000
je 0x301b4c31
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x58]
push dword [eax + 4]
lea ecx, [esi + 0xc]
push esi
call fcn.301b3abf
jmp 0x301b4c3e
mov ecx, esi
call fcn.301b3b13
mov al, byte [eax + 0xc]
mov byte [ebp + 8], al
test dword [esi + 0x38], 0x100000
je 0x301b4c4e
mov ecx, esi
call fcn.301b5038
push dword [ebp - 8]
mov eax, dword [ebx]
push dword [ebp + 8]
mov ecx, ebx
push 1
call dword [eax + 0x10]
cmp dword [ebp - 0x10], 0
je 0x301b4c71
push dword [ebp - 0xc]
lea eax, [ebp - 0x60]
push eax
mov ecx, esi
call fcn.301b4167
and dword [esi + 0x38], 0xefffffff
cmp dword [ebp - 4], 0
je 0x301b4ce3
test edi, edi
mov esi, dword [ebp - 4]
jne 0x301b4c9d
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
push edi
push 0xff
push edi
mov ecx, esi
call dword [eax + 0x10]
jmp 0x301b4c9f
xor edi, edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
cmp dword [ebp - 0x38], edi
je 0x301b4cc2
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
lea ecx, [eax + 0x6c]
call fcn.301ecd06
jmp 0x301b4cdc
cmp dword [ebp - 0x64], edi
je 0x301b4cdc
push dword [0x3026b738]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
lea ecx, [eax + 0x6c]
call fcn.301b3fc5
mov ecx, dword [ebp - 0x58]
mov eax, dword [ecx]
call dword [eax]
pop edi
pop esi
pop ebx
leave
ret 4