Function at 0x408880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3883
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
push esi
push 0x3ec
lea ecx, [esi + 0x7c]
mov dword [esp + 0x1c], esi
call fcn.004605a0
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x4d7d30
call fcn.004223e0
mov edi, eax
push 0x3f0
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.004099a0
mov eax, dword [eax + 4]
push edi
push eax
call fcn.0045f990
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 8
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408911
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x4d7d3c
call fcn.004223e0
mov edi, eax
push 0x3eb
mov ecx, esi
mov dword [esp + 0x40], 1
call fcn.004099a0
mov eax, dword [eax + 4]
push edi
push eax
call fcn.0045f990
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 8
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40896d
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x4d7d48
call fcn.004223e0
mov edi, eax
push 0x3ea
mov ecx, esi
mov dword [esp + 0x40], 2
call fcn.004099a0
mov eax, dword [eax + 4]
push edi
push eax
call fcn.0045f990
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 8
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4089c9
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x4d7d54
call fcn.004223e0
mov edi, eax
push 0x3ed
mov ecx, esi
mov dword [esp + 0x40], 3
call fcn.004099a0
mov eax, dword [eax + 4]
push edi
push eax
call fcn.0045f990
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x24]
add esp, 8
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408a25
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x14]
push 0
lea edi, [esi + 0x90]
push 0x65
mov ecx, edi
call fcn.00461320
mov eax, dword [esi + 4]
mov ebx, dword [edi]
test eax, eax
je 0x408a4a
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x408a6a
push 0
push 0x1fe
push str.D:Build10AWLIncWindowAwl.inl
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
mov ecx, dword [esi + 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x80
push ecx
call ebx
mov eax, dword [esi + 4]
mov edi, dword [edi]
test eax, eax
je 0x408a92
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x408ab2
push 0
push 0x1fe
push str.D:Build10AWLIncWindowAwl.inl
push 0x4b84f0
push 0x4b84f0
push 0
call fcn.0041d410
add esp, 0x18
mov edx, dword [esi + 4]
push edi
push 1
push 0x80
push edx
call ebx
mov eax, dword [0x4da0cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test eax, eax
jne 0x408ad7
mov edi, 0x4d79e4
mov edx, dword [edi]
mov eax, dword [edx + 4]
push 0x7c
mov ecx, edi
call eax
test eax, eax
jne 0x408aeb
call fcn.0041cdf0
add eax, 8
mov dword [eax - 8], edi
jne 0x408af8
call fcn.0041cdf0
mov dword [esp + 0x1c], eax
push eax
mov dword [esp + 0x40], 4
call fcn.00407e30
mov dword [esp + 0x3c], 0xffffffff
mov edi, dword [esi + 0x8c]
mov ebx, eax
test edi, edi
je 0x408b32
push edi
call fcn.00410a10
mov ecx, dword [edi - 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
add edi, 0xfffffff8
push edi
call eax
mov dword [esi + 0x8c], ebx
test ebx, ebx
jne 0x408b5a
push ebx
push 0xc8
push str.D:Build10FineToolsIncPtrOwner.h
push 0x4b84f0
push 0x4b84f0
push ebx
call fcn.0041d410
add esp, 0x18
mov ecx, dword [esi + 0x8c]
lea eax, [esp + 0x18]
call fcn.00410b90
push 0x3e8
mov ecx, esi
mov dword [esp + 0x40], 5
call fcn.004099a0
mov eax, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
call fcn.0045f990
add esp, 8
call fcn.004383c0
cmp eax, 0x3d
jne 0x408c0c
push 0
push 0
push 0x3000
push ecx
push 0x3e8
mov ecx, esi
call fcn.004099a0
add esp, 4
mov ecx, eax
call fcn.0045ce00
push 0
push 0
push 2
push ecx
push 0x3e8
mov ecx, esi
call fcn.004099a0
add esp, 4
mov ecx, eax
call fcn.0045cd80
push 0
push 0
push 0x400000
push ecx
push 0x67
mov ecx, esi
call fcn.004099a0
add esp, 4
mov ecx, eax
call fcn.0045ce00
push 0
push 2
push 0
push ecx
push 0x67
mov ecx, esi
call fcn.004099a0
add esp, 4
mov ecx, eax
call fcn.0045cd80
push 1
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.004097d0
push eax
mov ecx, esi
call fcn.004098a0
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.0045b2c0
mov byte [esp + 0x13], al
mov dword [esp + 0x3c], 0xffffffff
mov eax, dword [esp + 0x18]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x408c57
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x34]
mov al, byte [esp + 0x13]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4