Function at 0x4217b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x458008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 0x114], al
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0x110], al
xor eax, eax
mov dword [ebp - 0xd0], eax
cmp dword [0x45b934], 1
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xe0], edi
jne 0x4218ad
cmp dword [0x45b940], 3
jg 0x4218ad
test ecx, ecx
jne 0x4218ad
push 3
push 0x5ca
push str.debug_trace_event_impl.cc
lea ecx, [ebp - 0x364]
call fcn.0040c820
mov dword [ebp - 4], 0
lea ecx, [eax + 8]
mov edx, str.Check_failed:_name.
mov dword [ebp - 0xd0], 1
call fcn.00406de0
mov eax, 1
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x4218cc
and eax, 0xfffffffe
lea ecx, [ebp - 0x364]
mov dword [ebp - 0xd0], eax
call fcn.0040ca70
test byte [ebp - 0xcc], 4
je 0x4218ed
xor esi, dword [ebx + 0x108]
xor edi, dword [ebx + 0x10c]
mov dword [ebp - 0xf0], esi
mov dword [ebp - 0xe0], edi
mov eax, dword [ebp - 0xf4]
test byte [eax], 1
je 0x4221c3
mov eax, dword [ebp + 0x20]
xorps xmm0, xmm0
movlpd qword [ebp - 0xec], xmm0
push 0
mov dword [ebp - 0x108], ebx
mov ecx, dword [eax]
sub ecx, dword [ebx + 0x118]
mov eax, dword [eax + 4]
sbb eax, dword [ebx + 0x11c]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x12c], ecx
lea ecx, [ebp - 0x104]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x148], eax
call fcn.00407280
mov dword [ebp - 0xfc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0xd8], 0
call fcn.0041b4a0
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call esi
test eax, eax
je 0x4219d7
push dword [ebx + 0x170]
call esi
mov esi, eax
mov dword [ebp - 0xd8], esi
test esi, esi
jne 0x4219d7
push 0x20
call fcn.0042646d
add esp, 4
mov dword [ebp - 0x10c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4219be
push ebx
mov ecx, eax
call fcn.004206e0
mov esi, eax
mov dword [ebp - 0xd8], eax
jmp 0x4219c6
xor esi, esi
mov dword [ebp - 0xd8], esi
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x170]
call fcn.0041ebe0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [ebp - 0xd4]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, eax
jne 0x421b76
call fcn.00411980
push esi
mov ecx, eax
call fcn.004113e0
mov edi, eax
mov dword [ebp - 0x140], edi
call fcn.00423af0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp edi, eax
je 0x421b70
test edi, edi
je 0x421b70
cmp byte [edi], 0
je 0x421b70
call fcn.00423af0
mov edx, edi
mov ecx, eax
call fcn.0041ebe0
push ebx
mov dword [ebp - 0x158], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebx + 0xa4]
call fcn.00423430
mov esi, dword [ebp - 0xcc]
lea ecx, [ebx + 0xa4]
cmp esi, dword [ecx]
jne 0x421a9e
push edi
push ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.00422b20
add esp, 4
mov ecx, eax
call fcn.00404a50
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call edi
jmp 0x421b76
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
push 0x451560
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 4
call fcn.0040ad30
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x154]
mov dword [ebp - 0xcc], eax
call fcn.004066f0
lea eax, [ebp - 0x138]
push eax
lea edx, [ebp - 0x164]
lea ecx, [ebp - 0x154]
call fcn.0040b010
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x140]
mov ecx, dword [ebp - 0x138]
add esp, 4
mov byte [ebp - 0xd4], 0
push dword [ebp - 0xd4]
push eax
call fcn.00425700
add esp, 8
cmp eax, dword [ebp - 0x134]
setne al
test al, al
jne 0x421b4e
mov ecx, dword [ebp - 0xcc]
push 0x2c
call fcn.00407370
mov ecx, dword [ebp - 0xcc]
push edi
call fcn.00406790
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x421b61
push eax
call fcn.00426468
add esp, 4
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call edi
jmp 0x421b76
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx + 0x24], 0
jne 0x4220a3
push dword [ebp - 0xe8]
push dword [ebp - 0xec]
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
push dword [ebp - 0x110]
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebp - 0xc4]
push dword [ebp - 0x118]
push dword [ebp - 0x124]
push dword [ebp - 0x120]
push dword [ebp - 0xe0]
push dword [ebp - 0xf0]
push dword [ebp - 0xf8]
push dword [ebp - 0xf4]
push dword [ebp - 0x114]
push dword [ebp - 0xc8]
call fcn.0041fa40
mov eax, dword [ebp - 0xd8]
mov byte [ebp - 4], 5
test eax, eax
je 0x421c11
lea ecx, [ebp - 0x108]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, eax
call fcn.00420a90
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x421c44
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
mov dword [ebp - 0x15c], ebx
call esi
mov byte [ebp - 4], 6
lea edx, [ebp - 0xc4]
mov ecx, dword [ebx + 0x30]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x108]
mov ecx, ebx
push eax
call fcn.00421760
push ebx
call edi
mov eax, dword [ebx + 0x13c]
test al, 8
je 0x422056
push ebx
mov dword [ebp - 0x168], ebx
call esi
cmp byte [ebp - 0xdc], 0x45
xorps xmm0, xmm0
mov byte [ebp - 4], 7
movlpd qword [ebp - 0xec], xmm0
jne 0x421cc5
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebx + 0xc4]
call fcn.00422c90
mov ecx, eax
call fcn.00423190
mov ecx, dword [ebp + 0x20]
mov edi, dword [ecx]
sub edi, dword [eax]
mov dword [ebp - 0xcc], edi
mov edi, dword [ecx + 4]
lea ecx, [ebx + 0xc4]
sbb edi, dword [eax + 4]
lea eax, [ebp - 0xc8]
push eax
mov dword [ebp - 0xd4], edi
call fcn.00422c90
dec dword [eax + 0x10]
jne 0x421cdd
mov dword [eax + 0xc], 0
jmp 0x421cdd
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebx + 0xa4]
call fcn.00422b20
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00402770
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
mov esi, dword [ebx + 0xe4]
push ecx
lea ecx, [ebp - 0x13c]
push ecx
lea ecx, [ebx + 0xe4]
call fcn.00423770
cmp dword [ebp - 0x13c], esi
jne 0x421d61
mov edi, dword [ebx + 0xe8]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebx + 0xe4]
call fcn.00422dd0
mov esi, eax
mov eax, 0xaaaaaaab
mul edi
shr edx, 2
lea ecx, [edx + edx*2]
add ecx, ecx
sub edi, ecx
inc edi
mov dword [esi], edi
sub esp, 8
lea ecx, [ebp - 0x204]
call fcn.00409220
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
push eax
cmovae esi, dword [ebp - 0x2c]
lea ecx, [ebx + 0xe4]
call fcn.00422dd0
push dword [eax]
lea eax, [ebp - 0x74]
push esi
push str._s:_e_0_3_dm
push eax
call fcn.0040ddf0
add esp, 0x10
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x204]
call fcn.0040d360
mov byte [ebp - 4], 9
cmp dword [ebp - 0x60], 0x10
jb 0x421dc7
push dword [ebp - 0x74]
call fcn.00426468
add esp, 4
mov esi, dword [ebx + 0xc4]
lea ecx, [ebp - 0xc8]
push ecx
lea ecx, [ebp - 0x10c]
xor edi, edi
push ecx
lea ecx, [ebx + 0xc4]
call fcn.00423430
cmp dword [ebp - 0x10c], esi
je 0x421e05
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebx + 0xc4]
call fcn.00422c90
mov edi, dword [eax + 0x10]
test edi, edi
je 0x421e23
lea esp, [esp]
mov edx, 0x451e08
lea ecx, [ebp - 0x204]
call fcn.00406de0
dec edi
jne 0x421e10
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004204b0
cmp byte [ebp - 0xdc], 0x45
jne 0x421e96
mov edx, dword [ebp - 0xd4]
mov ecx, dword [ebp - 0xcc]
call fcn.00444cdf
divsd xmm0, qword [0x452188]
sub esp, 8
lea eax, [ebp - 0x5c]
movsd qword [esp], xmm0
push str.___.3f_ms_
push eax
call fcn.0040ddf0
add esp, 0x10
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x204]
call fcn.0040d360
mov byte [ebp - 4], 9
cmp dword [ebp - 0x48], 0x10
jb 0x421e96
push dword [ebp - 0x5c]
call fcn.00426468
add esp, 4
cmp dword [0x45b940], 2
jg 0x421f48
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x204]
call fcn.004092f0
mov esi, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2ac]
mov edi, dword [ebp - 0xd0]
sub esp, 8
or edi, 2
mov dword [ebp - 0x2b4], 2
mov dword [ebp - 0xd0], edi
call fcn.00409220
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x210], str.debug_trace_event_impl.cc
mov dword [ebp - 0x20c], 0x63a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x208], eax
push 0x63a
push str.debug_trace_event_impl.cc
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0xe
call fcn.0040cd70
mov dword [ebp - 4], 0xf
lea ecx, [ebp - 0x2ac]
or edi, 4
mov edx, esi
mov dword [ebp - 0xd0], edi
call fcn.0040d360
mov edx, str.e_0_m
mov ecx, eax
call fcn.00406de0
mov dword [ebp - 4], 0xc
mov eax, dword [ebp - 0xd0]
test al, 4
je 0x421f73
and eax, 0xfffffffb
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 0xd0], eax
call fcn.0040ca70
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 4], 9
test al, 2
je 0x421f8f
cmp dword [ebp - 0x30], 0x10
jb 0x421f8f
push dword [ebp - 0x44]
call fcn.00426468
add esp, 4
cmp byte [ebp - 0xdc], 0x42
jne 0x421fb4
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebx + 0xc4]
call fcn.00422c90
push dword [ebp + 0x20]
mov ecx, eax
call fcn.00423d00
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x204]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x204]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x208], eax
lea ecx, [ebp - 0x200]
call fcn.00408130
mov eax, dword [ebp - 0x204]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x204]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x208], eax
lea eax, [ebp - 0x1b4]
push eax
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.004409ff
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x42203b
push dword [ebp - 0x2c]
call fcn.00426468
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call edi
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x42208a
push 0xffffffffffffffff
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
setne al
test al, al
jne 0x42208a
test esi, esi
je 0x42208a
lea ecx, [esi - 4]
test ecx, ecx
je 0x42208a
mov eax, dword [ecx]
push 1
call dword [eax + 8]
push 0x41f070
push 2
push 4
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 1
push eax
call fcn.004285ed
mov esi, dword [ebp - 0xf4]
cmp dword [ebx + 0x120], esi
jne 0x422111
push ebx
mov dword [ebp - 0x16c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0xf8]
lea ecx, [ebx + 0x124]
mov byte [ebp - 4], 0x11
call fcn.004131e0
test al, al
je 0x42210a
mov ecx, dword [ebp - 0x108]
add ecx, 0x28
cmp dword [ecx], 0
je 0x42210a
mov eax, dword [ebp - 0xfc]
test eax, eax
jne 0x422101
push ecx
lea ecx, [ebp - 0x104]
call fcn.00420dc0
mov eax, dword [ebp - 0xfc]
or eax, 2
mov dword [ebp - 0xfc], eax
push ebx
mov byte [ebp - 4], 1
call edi
cmp dword [ebp - 0xfc], 0
je 0x422130
lea eax, [ebp - 0xfc]
push eax
push dword [ebp - 0x104]
call dword [ebp - 0x100]
add esp, 8
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x422173
push dword [ebp - 0x110]
push dword [ebp - 0x11c]
push dword [ebp - 0x118]
push dword [ebp - 0x124]
push dword [ebp - 0x120]
push dword [ebp - 0xe0]
push dword [ebp - 0xf0]
push dword [ebp - 0xf8]
push esi
push dword [ebp - 0x114]
call eax
add esp, 0x28
mov eax, dword [ebp - 0xd8]
test eax, eax
je 0x422192
lea ecx, [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
call fcn.00420b20
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x104]
test esi, esi
je 0x4221c3
push 0xffffffffffffffff
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec eax
jne 0x4221c3
test esi, esi
je 0x4221c3
lea ecx, [esi - 4]
test ecx, ecx
je 0x4221c3
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00426319
mov esp, ebp
pop ebp
ret 0x34