Function at 0x436580
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov dword [esp + 0x24], ecx
call fcn.00412f50
mov esi, dword [ebp + 0xc]
mov ebx, eax
mov edi, dword [0x52827c]
mov eax, dword [esi + 0x24]
cdq
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x4365bd
mov dword [esp + 0x4c], edi
jmp 0x436610
mov eax, dword [0x51f2e4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x4365d6
call fcn.00428da0
mov ecx, eax
mov eax, dword [edi + 0xc]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 0x10]
jne 0x4365ea
mov eax, dword [ecx]
test eax, eax
jne 0x4365f1
mov ecx, edi
call fcn.0041eea0
mov dword [esp + 0x4c], eax
test eax, eax
je 0x436610
lea ecx, [esp + 0x40]
push ecx
push 0x10
push dword [esp + 0x24]
mov ecx, eax
push ebx
call fcn.0041ec90
mov dword [esp + 0x50], eax
mov eax, dword [0x52832c]
xorps xmm0, xmm0
mov dword [esp + 0x54], 0
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x70], xmm0
test eax, eax
je 0x436639
call eax
mov dword [esp + 0x14], eax
jmp 0x436665
call fcn.0042ec60
test al, al
je 0x43665b
mov eax, dword [0x528324]
cmp eax, 2
jle 0x43665b
lea ecx, [esp + 0x14]
call fcn.0043b1b0
mov eax, dword [esp + 0x14]
jmp 0x436665
mov dword [esp + 0x14], 0
xor eax, eax
mov dword [esp + 0x6c], eax
call fcn.0042f090
mov dword [esp + 0x74], eax
test eax, eax
je 0x436684
mov ecx, dword [eax + 0x68]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x6c]
mov dword [eax + 0x68], ecx
mov edx, dword [esi + 8]
mov eax, edx
mov ecx, dword [esi + 0xc]
or eax, ecx
jne 0x436699
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
jmp 0x4366c4
cmp edx, 0xffffffff
jne 0x4366ae
cmp ecx, 0x7fffffff
jne 0x4366ae
or eax, edx
mov dword [esp + 0x34], ecx
jmp 0x4366c0
push 0
push 0x3e8
push ecx
push edx
call fcn.00461480
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov edi, dword [esp + 0x6c]
mov ebx, dword [0x528378]
sub edi, eax
test ebx, ebx
jne 0x436739
call fcn.004338b0
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4366e8
mov ebx, 0x51f32c
jmp 0x436733
mov ecx, str.disabled_by_default_toplevel.flow
call fcn.0043d0c0
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x436733
mov esi, dword [esp + 0x1c]
add esi, 4
mov byte [esp + 0x13], al
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x18]
mov edx, 0x431750
push eax
mov ecx, str.disabled_by_default_toplevel.flow
call fcn.0043d130
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
mov esi, dword [ebp + 0xc]
mov dword [0x528378], ebx
mov dword [esp + 0x58], 0
test byte [ebx], 0x19
je 0x436790
lea eax, [esp + 0x20]
mov dword [esp + 0x20], edi
push eax
mov eax, dword [esi + 0x24]
xor esi, esi
push ecx
cdq
push eax
mov eax, dword [esp + 0x30]
cdq
or esi, eax
mov edx, ebx
push esi
mov esi, dword [ebp + 8]
push 0x106
sub esp, 0xc
push esi
call fcn.00436860
mov dword [esp + 0x88], eax
add esp, 0x24
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], edx
mov dword [esp + 0x58], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
call fcn.0041f700
lea ecx, [edi + 0x14]
add esp, 4
lea eax, [ecx - 4]
neg ecx
sbb ecx, ecx
and ecx, eax
mov esi, dword [ecx]
mov dword [ecx], 0
push esi
mov eax, dword [esi]
call eax
add esp, 4
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
sub ecx, 1
jne 0x4367db
mov eax, dword [esi + 8]
push esi
call eax
add esp, 4
lea ecx, [esp + 0x6c]
call fcn.0042f720
mov eax, dword [edi]
mov dword [esp + 0x24], eax
test eax, eax
je 0x436822
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x436822
mov esi, dword [esp + 0x6c]
xor ecx, ecx
test esi, esi
je 0x436814
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.0042ec00
mov ecx, esi
sub ecx, dword [eax]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x6c]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.0042f290
cmp dword [esp + 0x58], 0
je 0x43684e
mov eax, dword [esp + 0x5c]
cmp byte [eax], 0
je 0x43684e
call fcn.004338b0
push dword [esp + 0x68]
mov ecx, eax
push dword [esp + 0x68]
push dword [esp + 0x68]
push dword [esp + 0x68]
call fcn.00432bd0
lea ecx, [esp + 0x4c]
call fcn.0041eda0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8