Function at 0x4504c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x599b44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x450507
mov ecx, dword [esi + 0x190]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [esi + 0x194]
jne 0x450507
cmp dword [eax + ecx*8], 0
jne 0x450cbd
mov eax, dword [0x5aab98]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x450cdc
mov eax, dword [0x599b44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x450cbd
mov ecx, dword [0x5aab90]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x5aab94]
jne 0x450cbd
cmp dword [eax + ecx*8], 0
je 0x450cbd
mov eax, dword [0x59d888]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x450d2e
mov eax, dword [0x599b44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x450cbd
mov ecx, dword [0x59d880]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [0x59d884]
jne 0x450cbd
cmp dword [eax + ecx*8], 0
je 0x450cbd
mov eax, dword [0x599b44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x45060a
mov ecx, dword [esi + 0x188]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [esi + 0x18c]
jne 0x45060a
mov edi, dword [eax + ecx*8]
test edi, edi
je 0x45060a
mov eax, dword [esi + 0x1d0]
cmp eax, dword [edi + 0x14]
je 0x450cbd
mov ecx, edi
call fcn.0044fd10
mov dword [esp], edi
call fcn.00528424
mov dword [esp], 0x18
call fcn.005283f4
mov dword [eax], 0x57ad98
mov dword [ebp - 0x28], eax
mov dword [eax + 4], 0x57ada0
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x450646
mov dword [esp], esi
call fcn.0042f0b8
jmp 0x450652
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov ebx, dword [ebp - 0x28]
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov eax, dword [esi + 0x1d0]
mov dword [ebx + 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.00464070
mov edi, dword [ebp - 0x14]
lea ecx, [edi + 0x1bc]
mov dword [esp], ebx
call fcn.0046a460
sub esp, 4
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
jae 0x4506ac
mov dword [esp], edi
call fcn.0042f1aa
call fcn.00455590
mov edi, eax
call fcn.00463830
mov eax, dword [eax]
test eax, eax
je 0x4506d4
mov ecx, 1
lock xadd dword [eax + 4], ecx
cmp ecx, 0x7fffffff
je 0x450d85
mov ecx, dword [ebp - 0x28]
add ecx, 4
mov byte [ebp - 0x14], 1
lea edx, [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0x57f5a8
mov ecx, edi
call fcn.00455610
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x18], eax
lea edi, [esi + 4]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
jne 0x450726
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
sub esp, 4
call fcn.00463830
mov ecx, dword [eax]
test ecx, ecx
je 0x450746
mov eax, 1
lock xadd dword [ecx + 4], eax
cmp eax, 0x7fffffff
je 0x450d88
mov dword [ebp - 0x34], ecx
mov eax, dword [esi + 0x1a4]
test eax, eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], edi
je 0x45079e
mov ecx, eax
shr ecx, 1
and ecx, 0x55555555
mov edi, eax
sub eax, ecx
mov ecx, eax
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul ecx, ecx, 0x1010101
shr ecx, 0x18
cmp ecx, 1
ja 0x4507a5
lea ebx, [edi - 1]
and ebx, edx
jmp 0x4507b7
mov ebx, 0xffffffff
jmp 0x450814
mov ebx, edx
cmp edx, edi
jb 0x4507b7
mov eax, edx
xor edx, edx
div dword [ebp - 0x1c]
mov ebx, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x1a0]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x450814
mov edi, dword [ebp - 0x1c]
dec edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ecx
jmp 0x4507d9
and eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x450808
jmp 0x450814
mov eax, dword [eax]
test eax, eax
je 0x450814
mov edi, eax
mov eax, dword [eax + 4]
cmp eax, edx
je 0x450808
cmp ecx, 1
jbe 0x4507d0
mov ecx, ebx
mov ebx, dword [ebp - 0x1c]
cmp eax, ebx
jb 0x4507ff
xor edx, edx
div ebx
mov eax, edx
mov edx, dword [ebp - 0x18]
mov ebx, ecx
mov ecx, dword [ebp - 0x20]
cmp eax, ebx
jne 0x450814
mov eax, edi
cmp dword [edi + 8], edx
jne 0x4507d9
jmp 0x450c4c
mov dword [esp], 0x10
call fcn.005283f4
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], 0
mov dword [eax + 4], ecx
mov dword [ebp - 0x24], eax
mov dword [eax], 0
mov eax, dword [esi + 0x1ac]
inc eax
movq xmm2, qword [0x57cf98]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [esi + 0x1b0]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x450887
movd xmm3, eax
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
jbe 0x450be4
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
mov edi, eax
call fcn.00556560
fstp dword [ebp - 0x40]
movss xmm0, dword [ebp - 0x40]
cvttss2si eax, xmm0
mov edx, eax
subss xmm0, dword [0x56b4f8]
sar edx, 0x1f
cvttss2si ecx, xmm0
and ecx, edx
or ecx, eax
lea edx, [edi + edi]
mov eax, 1
cmp edi, 3
jb 0x4508d6
mov ebx, dword [ebp - 0x1c]
lea edi, [ebx - 1]
xor eax, eax
test ebx, edi
setne al
or eax, edx
cmp eax, ecx
cmovbe eax, ecx
mov ebx, 2
cmp eax, 1
je 0x4508f0
lea ecx, [eax - 1]
test eax, ecx
jne 0x4508f8
mov ebx, eax
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x45090b
mov dword [esp], eax
call fcn.004352a4
mov ebx, eax
mov edi, dword [esi + 0x1a4]
mov edx, dword [ebp - 0x18]
cmp ebx, edi
jbe 0x450a25
cmp ebx, 0x40000000
jae 0x450d80
lea eax, [ebx*4]
mov dword [esp], eax
call fcn.005283f4
mov ecx, dword [esi + 0x1a0]
mov dword [esi + 0x1a0], eax
test ecx, ecx
je 0x450946
mov dword [esp], ecx
call fcn.00528424
mov dword [esi + 0x1a4], ebx
lea edx, [ebx - 1]
mov eax, ebx
and eax, 3
xor ecx, ecx
mov dword [ebp - 0x2c], edx
cmp edx, 3
jb 0x4509a3
mov edx, ebx
and edx, 0xfffffffc
xor ecx, ecx
mov edi, dword [esi + 0x1a0]
mov dword [edi + ecx*4], 0
mov edi, dword [esi + 0x1a0]
mov dword [edi + ecx*4 + 4], 0
mov edi, dword [esi + 0x1a0]
mov dword [edi + ecx*4 + 8], 0
mov edi, dword [esi + 0x1a0]
mov dword [edi + ecx*4 + 0xc], 0
add ecx, 4
cmp edx, ecx
jne 0x450965
mov dword [ebp - 0x30], ebx
test eax, eax
je 0x4509bb
mov edx, dword [esi + 0x1a0]
mov dword [edx + ecx*4], 0
inc ecx
dec eax
jne 0x4509aa
mov edi, dword [esi + 0x1a8]
test edi, edi
mov edx, dword [ebp - 0x18]
je 0x450bc2
lea eax, [esi + 0x1a8]
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
shr ecx, 1
and ecx, 0x55555555
mov eax, ebx
sub eax, ecx
mov ecx, eax
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov edx, eax
shr edx, 4
add edx, eax
mov ecx, dword [edi + 4]
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x1c], eax
cmp eax, 1
ja 0x450ae9
and ecx, dword [ebp - 0x2c]
jmp 0x450af5
jae 0x450bc2
movss xmm0, dword [esi + 0x1ac]
orpd xmm0, xmmword [0x57cfa0]
subsd xmm0, qword [0x57cf98]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [esi + 0x1b0]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00556560
mov eax, edi
fstp dword [ebp - 0x3c]
movss xmm0, dword [ebp - 0x3c]
cvttss2si ecx, xmm0
mov edx, ecx
subss xmm0, dword [0x56b4f8]
cvttss2si edi, xmm0
sar edx, 0x1f
and edi, edx
or edi, ecx
cmp eax, 3
mov dword [ebp - 0x1c], eax
jb 0x450b7a
mov edx, eax
shr edx, 1
and edx, 0x55555555
mov ecx, eax
sub ecx, edx
mov edx, ecx
and edx, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, edx
mov edx, ecx
shr edx, 4
add edx, ecx
and edx, 0xf0f0f0f
imul ecx, edx, 0x1010101
shr ecx, 0x18
cmp ecx, 1
ja 0x450b7a
lea ecx, [edi - 1]
bsr ecx, ecx
xor ecx, 0x1f
neg cl
mov eax, 1
shl eax, cl
cmp edi, 2
cmovb eax, edi
jmp 0x450b82
cmp ecx, ebx
jb 0x450af5
mov eax, ecx
xor edx, edx
div ebx
mov ecx, edx
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x1a0]
mov ebx, dword [ebp - 0x20]
mov dword [eax + ecx*4], ebx
mov ebx, dword [edi]
jmp 0x450b10
mov eax, ecx
mov edi, ebx
mov ebx, dword [ebx]
mov ecx, eax
test ebx, ebx
je 0x450bc2
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x1c], 1
ja 0x450b2a
and eax, dword [ebp - 0x2c]
cmp eax, ecx
je 0x450b08
jmp 0x450b44
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x30]
cmp eax, edi
jb 0x450b3d
xor edx, edx
div edi
mov eax, edx
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
cmp eax, ecx
je 0x450b08
mov edx, dword [esi + 0x1a0]
cmp dword [edx + eax*4], 0
je 0x450b72
mov edx, dword [ebx]
mov dword [edi], edx
mov edx, dword [esi + 0x1a0]
mov edx, dword [edx + eax*4]
mov edx, dword [edx]
mov dword [ebx], edx
mov edx, dword [esi + 0x1a0]
mov eax, dword [edx + eax*4]
mov dword [eax], ebx
mov ebx, edi
mov eax, ecx
jmp 0x450b75
mov dword [edx + eax*4], edi
mov edx, dword [ebp - 0x18]
jmp 0x450b0a
mov dword [esp], edi
call fcn.004352a4
cmp ebx, eax
cmova eax, ebx
cmp eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jae 0x450bc2
mov ebx, eax
test eax, eax
jne 0x450913
mov eax, dword [esi + 0x1a0]
mov dword [esi + 0x1a0], 0
test eax, eax
je 0x450bb8
mov dword [esp], eax
call fcn.00528424
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x1a4], 0
mov eax, dword [esi + 0x1a4]
lea ebx, [eax - 1]
test eax, ebx
mov dword [ebp - 0x1c], eax
jne 0x450bd6
and ebx, edx
jmp 0x450be4
cmp edx, eax
jb 0x450be2
mov ecx, eax
mov eax, edx
xor edx, edx
div ecx
mov ebx, edx
mov ecx, dword [esi + 0x1a0]
mov eax, dword [ecx + ebx*4]
test eax, eax
je 0x450bfa
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
mov dword [edx], ecx
jmp 0x450c41
mov eax, dword [esi + 0x1a8]
mov edx, dword [ebp - 0x24]
mov dword [edx], eax
lea eax, [esi + 0x1a8]
mov dword [esi + 0x1a8], edx
mov dword [ecx + ebx*4], eax
mov eax, dword [edx]
test eax, eax
je 0x450c43
mov eax, dword [eax + 4]
mov edi, dword [ebp - 0x1c]
lea ecx, [edi - 1]
test edi, ecx
jne 0x450c2b
and eax, ecx
jmp 0x450c35
cmp eax, edi
jb 0x450c35
xor edx, edx
div edi
mov eax, edx
shl eax, 2
add eax, dword [esi + 0x1a0]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
inc dword [esi + 0x1ac]
mov eax, dword [ebp - 0x24]
mov ebx, dword [eax + 0xc]
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0xc], eax
test ebx, ebx
je 0x450c7c
lock dec dword [ebx + 4]
jne 0x450c7c
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, ebx
call edi
sub esp, 4
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
mov eax, dword [0x599b44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
and eax, 0xfffffffc
je 0x450ccf
mov ecx, dword [esi + 0x188]
mov edx, dword [ebp - 0x28]
mov dword [eax + ecx*8], edx
mov ecx, dword [esi + 0x188]
mov edx, dword [esi + 0x18c]
mov dword [eax + ecx*8 + 4], edx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x28], 0
je 0x450cbd
call fcn.004625e0
jmp 0x450ca1
mov dword [esp], 0x5aab98
call fcn.00528497
cmp dword [0x5aab98], 0xffffffff
jne 0x450528
mov dword [0x5aab94], 0
mov dword [0x5aab90], 0xffffffff
mov dword [esp], 0
mov ecx, 0x5aab90
call fcn.004624b0
sub esp, 4
mov dword [esp], 0x5aab98
call fcn.0052850d
jmp 0x450528
mov dword [esp], 0x59d888
call fcn.00528497
cmp dword [0x59d888], 0xffffffff
jne 0x450583
mov dword [0x59d884], 0
mov dword [0x59d880], 0xffffffff
mov dword [esp], 0
mov ecx, 0x59d880
call fcn.004624b0
sub esp, 4
mov dword [esp], 0x59d888
call fcn.0052850d
jmp 0x450583
call fcn.0042d55a
int3
int3