Function at 0x415bd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x511014]
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x2c], eax
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x415fb6
mov dword [ebp - 0x24], esi
mov ebx, dword [esi + 8]
movzx eax, byte [edi + 0xb]
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x415ce9
mov ecx, dword [ebp - 0x1c]
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test cl, cl
jns 0x415c2c
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test esi, esi
je 0x415c3a
cmp dword [ebp - 0x18], 0
je 0x41601c
mov eax, dword [ebp - 0x24]
lea edi, [eax + 8]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
movzx edx, byte [ebx + 0x1b]
test dl, dl
jns 0x415c56
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
jmp 0x415c59
lea eax, [ebx + 0x10]
test edx, edx
je 0x415c65
test eax, eax
je 0x41601c
cmp edx, esi
mov ecx, esi
mov edi, edx
cmovb ecx, edx
test ecx, ecx
je 0x415c8f
push ecx
push dword [ebp - 0x18]
push eax
call fcn.00494bf2
add esp, 0xc
test eax, eax
je 0x415c8f
js 0x415c93
mov edi, ebx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x415c43
jmp 0x415c9b
cmp edi, esi
jae 0x415c85
add ebx, 4
mov edi, dword [ebp - 0x20]
jmp 0x415c87
cmp edi, dword [ebp - 0x28]
je 0x415ce9
movzx ebx, byte [edi + 0x1b]
test bl, bl
jns 0x415cb0
mov ebx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
jmp 0x415cb3
lea eax, [edi + 0x10]
test ebx, ebx
je 0x415cbf
test eax, eax
je 0x41601c
cmp esi, ebx
mov ecx, ebx
cmovb ecx, esi
test ecx, ecx
je 0x415f11
push ecx
push eax
push dword [ebp - 0x18]
call fcn.00494bf2
add esp, 0xc
test eax, eax
je 0x415f11
jns 0x415f19
mov ebx, dword [ebp - 0x24]
lea edi, [ebx + 4]
push 0xc
call fcn.00494aa6
add esp, 4
mov ecx, eax
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
jns 0x415f78
push dword [esi + 4]
push dword [esi]
call fcn.0040a150
lea edx, [ebp - 0x14]
mov dword [edx], 0xffffffff
mov dword [ebp - 0x20], edi
mov ecx, edi
push esi
call fcn.00401b40
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, dword [eax]
test edi, edi
jne 0x415d8f
push 0x20
call fcn.00494aa6
add esp, 4
mov edi, eax
mov ecx, eax
add ecx, 0x10
cmp byte [esi + 0xb], 0
jns 0x415f8b
push dword [esi + 4]
push dword [esi]
call fcn.0040a150
xor eax, eax
mov dword [edi + 0x1c], eax
mov ecx, dword [ebp - 0x14]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov esi, dword [ebp - 0x1c]
mov dword [esi], edi
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [eax]
mov eax, edi
test ecx, ecx
jne 0x41603a
push eax
push dword [ebx + 8]
call fcn.0047dd20
add esp, 8
inc dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x1c], eax
mov edi, eax
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x14]
mov edx, eax
test ecx, ecx
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
je 0x415dcc
lea edx, [ecx + 4]
cmp dword [ecx + 0x10], esi
cmovae edx, ecx
cmovae eax, ecx
mov ecx, dword [edx]
test ecx, ecx
jne 0x415da9
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
cmp eax, ecx
je 0x415dcc
cmp esi, dword [eax + 0x10]
cmovb eax, ecx
mov edx, eax
mov dword [ebp - 0x30], edx
mov eax, dword [0x524a28]
mov ecx, dword [0x514f00]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x415fd4
cmp byte [edi + 0xb], 0
mov esi, edi
jns 0x415dfa
mov esi, dword [edi]
push dword [0x514c54]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x415fc2
mov ecx, dword [0x524a20]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x524a24]
mov edx, dword [0x524a20]
mov dword [eax + edx*8 + 4], ecx
mov eax, ebx
mov ebx, dword [ebx + 0x30]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x28], eax
cmp ebx, eax
mov dword [ebp - 0x18], edi
je 0x415e68
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x415e44
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
mov esi, dword [ebx]
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x20]
call edi
mov edi, dword [ebp - 0x18]
add ebx, 4
cmp ebx, dword [ebp - 0x28]
jne 0x415e3a
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x1c]
je 0x415f24
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x415f9e
mov eax, dword [edx + 0x14]
mov edi, ecx
mov ecx, dword [ecx + 0x10]
cmp eax, ecx
jb 0x415e99
jbe 0x415ef0
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x415e85
jmp 0x415ea3
mov ecx, dword [edi]
mov esi, edi
test ecx, ecx
jne 0x415e85
jmp 0x415ea6
lea esi, [edi + 4]
mov dword [ebp - 0x20], edi
push 0x18
mov ebx, edx
call fcn.00494aa6
add esp, 4
mov edi, eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
mov ebx, dword [ebp - 0x24]
mov dword [esi], edi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax]
mov eax, edi
test ecx, ecx
jne 0x415f6e
push eax
push dword [ebx + 0x20]
call fcn.0047dd20
add esp, 8
inc dword [ebx + 0x24]
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x14], eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496ce3
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 4
cmp esi, ebx
jb 0x415ce9
mov edi, dword [edi + 0x1c]
mov ebx, dword [ebp - 0x24]
jmp 0x415d97
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x28]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x518914]
bt edx, ecx
jb 0x416043
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x518914]
bt ecx, eax
mov esi, dword [ebp - 0x2c]
jae 0x415fa8
push edi
call fcn.00455550
add esp, 4
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], esi
jmp 0x415ef6
mov dword [ebx + 0x1c], ecx
mov eax, dword [esi]
jmp 0x415ee1
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi]
movsd qword [ecx], xmm0
jmp 0x415d15
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
movsd xmm0, qword [esi]
movsd qword [ecx], xmm0
jmp 0x415d5a
lea esi, [ebx + 0x20]
mov edi, esi
jmp 0x415ea6
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x520914], 1
jmp 0x415f66
mov ecx, esi
call fcn.004597a0
jmp 0x415c00
test esi, esi
je 0x415e28
call fcn.004048c0
jmp 0x415e0f
push 0x524a28
call fcn.00494ba0
add esp, 4
cmp dword [0x524a28], 0xffffffff
jne 0x415df0
mov dword [0x524a20], 0xffffffff
xor eax, eax
mov dword [0x524a24], eax
mov ecx, 0x524a20
push eax
call fcn.00404c70
push 0x524a28
call fcn.00495b95
add esp, 4
jmp 0x415df0
push str.string_view::string_view__CharT___size_t_:_received_nullptr
push str.__len__0____s___nullptr
push 0x129
push str....._buildtools_third_partylibc_trunkinclude_string_view
push str._s:_d:_assertion__s_failed:__s
call fcn.004be7c0
mov dword [edx], ecx
mov eax, dword [esi]
jmp 0x415d80
push eax
call fcn.00454d60
add esp, 4
jmp 0x415f44