Function at 0x4998f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0x57b060
mov dword [ecx + 4], 0x57b0e0
mov dword [ecx + 8], 0x57b100
mov dword [ecx + 0xc], 0x57b108
test byte [0x5994f4], 0x19
jne 0x49a3a2
mov ebx, dword [esi + 0x178]
mov dword [ebp - 0x3c], esi
lea edi, [esi + 0x17c]
cmp ebx, edi
je 0x4999bb
mov eax, dword [ebp - 0x3c]
lea ecx, [eax + 0xf0]
mov dword [ebp - 0x40], ecx
add eax, 0x104
mov dword [ebp - 0x44], eax
jmp 0x499966
mov ebx, eax
cmp eax, edi
je 0x4999bb
mov esi, dword [ebx + 0x10]
cmp byte [esi + 0xb4], 0
je 0x499988
mov ecx, dword [ebp - 0x40]
push dword [esi + 0x78]
call fcn.004ea760
mov ecx, dword [ebp - 0x44]
push dword [esi + 0x7c]
call fcn.004ea760
mov ecx, esi
call fcn.004c0190
test ebx, ebx
je 0x49a430
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4999b0
nop
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4999a0
jmp 0x499960
mov eax, dword [ebx + 8]
cmp dword [eax], ebx
mov ebx, eax
jne 0x4999b0
jmp 0x499960
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0x20]
mov eax, dword [esi]
mov ebx, dword [eax + 0x44]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebx + 0x17c]
call fcn.00487070
mov dword [ebx + 0x180], 0
mov dword [ebx + 0x178], edi
mov dword [ebx + 0x17c], 0
lea esi, [ebx + 0x188]
mov ecx, dword [ebx + 0x188]
call fcn.004a0450
mov dword [ebx + 0x18c], 0
mov dword [ebx + 0x184], esi
mov dword [ebx + 0x188], 0
lea ecx, [ebx + 0xd8]
mov dword [ebp - 0x4c], ecx
push 0
call fcn.004bf010
cmp byte [ebx + 0x19d], 0
je 0x499a59
lea edi, [ebx + 0xc]
mov esi, dword [ebx + 0x20]
mov eax, dword [esi]
mov ebx, dword [eax + 0x4c]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push edi
call ebx
mov ebx, dword [ebp - 0x3c]
lea ecx, [ebx + 0x1bc]
mov eax, dword [ebx + 0x1bc]
cmp eax, dword [ebx + 0x1c0]
mov dword [ebp - 0x40], ecx
je 0x499ab2
mov dword [ebp - 0x1c], ecx
lea eax, [ebx + 0x1c8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x1c8]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov dword [eax + 4], ecx
mov dword [ebx + 0x1c8], ecx
mov dword [ebp - 0x18], 0
cmp dword [ebx + 0x1d4], 0
je 0x499ac8
mov edx, dword [ebx + 0x1c0]
sub edx, dword [ebx + 0x1bc]
sar edx, 2
jmp 0x499acd
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0
xor edx, edx
xor ecx, ecx
xor eax, eax
jmp 0x499b12
mov edx, 0xffffffff
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 4]
sub esi, dword [eax]
sar esi, 2
cmp esi, edx
cmovae esi, edx
xor ecx, ecx
test esi, esi
je 0x499b12
nop word cs:[eax + eax]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
sub ebx, edi
sar ebx, 2
cmp ebx, ecx
jbe 0x49a436
cmp dword [edi + ecx*4], 0
jne 0x499b12
inc ecx
mov dword [ebp - 0x18], ecx
cmp esi, ecx
jne 0x499af0
mov ecx, esi
xorps xmm0, xmm0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
test eax, eax
je 0x499bb7
nop dword [eax + eax]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
sub ebx, esi
sar ebx, 2
cmp ebx, edx
cmovb edx, ebx
cmp ecx, edx
je 0x499bb7
cmp ebx, ecx
jbe 0x49a439
mov esi, dword [esi + ecx*4]
test esi, esi
je 0x499b65
mov ecx, esi
call fcn.0044fd10
push esi
call fcn.00528424
add esp, 4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x499bb7
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x18], ecx
mov esi, dword [eax + 4]
sub esi, dword [eax]
sar esi, 2
cmp esi, edx
cmovae esi, edx
cmp ecx, esi
jae 0x499b30
nop word cs:[eax + eax]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
sub ebx, edi
sar ebx, 2
cmp ebx, ecx
jbe 0x49a42d
cmp dword [edi + ecx*4], 0
jne 0x499b30
inc ecx
mov dword [ebp - 0x18], ecx
cmp esi, ecx
jne 0x499b90
mov ecx, esi
jmp 0x499b30
lea ecx, [ebp - 0x38]
call fcn.0045b3f0
lea ecx, [ebp - 0x24]
call fcn.0045b3f0
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax + 0x20]
mov eax, dword [esi]
mov ebx, dword [eax + 0x28]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
call ebx
test eax, eax
je 0x499c31
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 0x49a3e1
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x499c31
mov ecx, dword [0x5aab90]
mov dword [eax + ecx*8], 0
mov ecx, dword [0x5aab94]
mov edx, dword [0x5aab90]
mov dword [eax + edx*8 + 4], ecx
mov ebx, dword [ebp - 0x3c]
mov dword [ebx + 0x1e8], 0
mov eax, dword [ebx + 0x1e4]
mov byte [eax + 4], 1
mov eax, dword [ebx + 0x1e4]
test eax, eax
je 0x499c60
lock dec dword [eax]
jne 0x499c60
push eax
call fcn.00528424
add esp, 4
mov esi, dword [ebx + 0x1d8]
test esi, esi
je 0x499c7e
lock dec dword [esi]
jne 0x499c7e
mov ecx, dword [esi + 8]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
lea eax, [ebx + 0x1c8]
nop word cs:[eax + eax]
mov ecx, dword [ebx + 0x1cc]
cmp ecx, eax
je 0x499cc5
cmp dword [ecx + 8], 0
je 0x499c96
mov dword [ecx + 8], 0
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov dword [ecx + 4], 0
mov dword [ecx], 0
jmp 0x499c90
mov ecx, dword [ebp - 0x40]
mov esi, dword [ecx]
test esi, esi
je 0x499d2b
mov ebx, dword [ebx + 0x1c0]
mov eax, esi
cmp ebx, esi
jne 0x499ced
jmp 0x499d19
mov dword [ebx - 4], 0
mov ebx, edi
cmp edi, esi
je 0x499d14
lea edi, [ebx - 4]
mov eax, dword [ebx - 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x499ce0
push eax
call fcn.0042f1aa
add esp, 4
jmp 0x499ce0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov ebx, dword [ebp - 0x3c]
mov dword [ebx + 0x1c0], esi
push eax
call fcn.00528424
add esp, 4
mov eax, dword [ebx + 0x1b8]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x499d50
push eax
call fcn.0042f1aa
add esp, 4
mov dword [ebx + 0x1b8], 0
mov esi, dword [ebx + 0x1a4]
mov edi, dword [ebx + 0x1a8]
cmp edi, esi
je 0x499e9d
mov ecx, dword [ebx + 0x1b0]
mov eax, ecx
mov edx, 0xaaaaaaab
mul edx
shr edx, 4
mov dword [ebp - 0x40], edx
lea eax, [edx*8]
lea eax, [eax + eax*2]
mov edx, ebx
mov ebx, ecx
sub ebx, eax
add ecx, dword [edx + 0x1b4]
mov eax, ecx
mov edx, 0xaaaaaaab
mul edx
shr edx, 4
lea eax, [edx*8]
lea eax, [eax + eax*2]
sub ecx, eax
imul ebx, ebx, 0xa8
mov eax, dword [ebp - 0x40]
add ebx, dword [esi + eax*4]
imul eax, ecx, 0xa8
add eax, dword [esi + edx*4]
mov ecx, dword [ebp - 0x3c]
add ecx, 0x1b4
mov dword [ebp - 0x44], eax
cmp ebx, eax
je 0x499ea7
mov eax, dword [ebp - 0x40]
lea edx, [esi + eax*4]
mov dword [ebp - 0x40], ecx
mov edi, dword [ebp - 0x44]
jmp 0x499df8
cmp ebx, edi
je 0x499e8c
test ebx, ebx
je 0x49a433
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x499e1c
lock dec dword [eax]
jne 0x499e1c
push eax
mov esi, edx
call fcn.00528424
mov edx, esi
mov ecx, dword [ebp - 0x40]
add esp, 4
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x499e48
lock dec dword [esi + 4]
jne 0x499e48
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x48], edx
call dword [section..00cfg]
mov ecx, esi
push 1
call edi
mov edx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov esi, dword [ebx]
test esi, esi
je 0x499e6c
lock dec dword [esi]
jne 0x499e6c
mov ecx, dword [esi + 8]
mov edi, edx
call dword [section..00cfg]
push esi
call ecx
mov edx, edi
mov edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
add esp, 4
add ebx, 0xa8
mov eax, ebx
sub eax, dword [edx]
cmp eax, 0xfc0
jne 0x499df0
mov ebx, dword [edx + 4]
add edx, 4
jmp 0x499df0
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebx + 0x1a4]
mov edi, dword [ebx + 0x1a8]
jmp 0x499eaa
lea ecx, [ebx + 0x1b4]
mov edi, esi
jmp 0x499eaa
mov ebx, dword [ebp - 0x3c]
mov dword [ecx], 0
mov eax, edi
sub eax, esi
cmp eax, 9
jb 0x499ee8
nop dword [eax]
push dword [esi]
call fcn.00528424
add esp, 4
mov esi, dword [ebx + 0x1a4]
mov edi, dword [ebx + 0x1a8]
add esi, 4
mov dword [ebx + 0x1a4], esi
mov eax, edi
sub eax, esi
cmp eax, 8
ja 0x499ec0
shr eax, 2
cmp eax, 1
je 0x499efc
cmp eax, 2
jne 0x499f07
mov eax, 0x18
jmp 0x499f01
mov eax, 0xc
mov dword [ebx + 0x1b0], eax
cmp esi, edi
je 0x499f41
nop dword [eax + eax]
push dword [esi]
call fcn.00528424
add esp, 4
add esi, 4
cmp esi, edi
jne 0x499f10
mov eax, dword [ebx + 0x1a4]
mov ecx, dword [ebx + 0x1a8]
cmp ecx, eax
je 0x499f41
sub eax, ecx
add eax, 3
and eax, 0xfffffffc
add eax, ecx
mov dword [ebx + 0x1a8], eax
mov eax, dword [ebx + 0x1a0]
test eax, eax
je 0x499f54
push eax
call fcn.00528424
add esp, 4
mov ecx, dword [ebx + 0x194]
call fcn.004a0450
mov ecx, dword [ebx + 0x188]
call fcn.004a0450
mov ecx, dword [ebx + 0x17c]
call fcn.00487070
mov esi, dword [ebx + 0x164]
mov dword [ebx + 0x164], 0
test esi, esi
je 0x499f9e
mov eax, dword [esi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push 1
call ebx
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebx + 0x160]
mov dword [ebx + 0x160], 0
test esi, esi
je 0x499fc7
mov eax, dword [esi]
mov ebx, dword [eax]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, esi
push 1
call ebx
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x15c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x499fec
push eax
call fcn.0042f1aa
add esp, 4
mov dword [ebx + 0x15c], 0
mov eax, dword [ebx + 0x158]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x49a01b
push eax
call fcn.0042f1aa
add esp, 4
mov dword [ebx + 0x158], 0
lea eax, [ebx + 0x148]
nop dword [eax + eax]
mov ecx, dword [ebx + 0x14c]
cmp ecx, eax
je 0x49a065
cmp dword [ecx + 8], 0
je 0x49a036
mov dword [ecx + 8], 0
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [edx + 4], esi
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov dword [ecx + 4], 0
mov dword [ecx], 0
jmp 0x49a030
mov esi, dword [ebx + 0x13c]
test esi, esi
je 0x49a0cc
mov edi, dword [ebx + 0x140]
mov eax, esi
cmp edi, esi
jne 0x49a08d
jmp 0x49a0bd
mov dword [edi - 4], 0
mov edi, ebx
cmp ebx, esi
je 0x49a0b4
lea ebx, [edi - 4]
mov eax, dword [edi - 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x49a080
push eax
call fcn.0042f1aa
add esp, 4
jmp 0x49a080
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x13c]
mov dword [ebx + 0x140], esi
push eax
call fcn.00528424
add esp, 4
lea ecx, [ebx + 0x120]
call fcn.00468fe0
mov ecx, dword [ebp - 0x4c]
call fcn.004beb10
mov eax, dword [ebx + 0x74]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x49a101
push eax
call fcn.0042f1aa
add esp, 4
mov dword [ebx + 0x74], 0
mov eax, dword [ebx + 0x70]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x49a12a
push eax
call fcn.0042f1aa
add esp, 4
mov dword [ebx + 0x70], 0
mov eax, dword [ebx + 0x6c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x49a153
push eax
call fcn.0042f1aa
add esp, 4
mov dword [ebx + 0x6c], 0
mov eax, dword [ebx + 0x64]
mov esi, dword [ebx + 0x68]
cmp esi, eax
jne 0x49a1f3
push 0
mov edi, dword [ebp - 0x3c]
push dword [edi + 0x5c]
push 0x587578
call fcn.00497f20
add esp, 0xc
lea ecx, [edi + 0x4c]
call fcn.004bddf0
mov eax, dword [edi + 0x2c]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x49a1a7
push eax
call fcn.0042f1aa
add esp, 4
mov dword [edi + 0x2c], 0
mov esi, dword [edi + 0x20]
mov dword [edi + 0x20], 0
test esi, esi
je 0x49a1cc
mov ecx, esi
call fcn.004ca410
push esi
call fcn.00528424
add esp, 4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x49a1e1
lock dec dword [eax]
jne 0x49a1e1
push eax
call fcn.00528424
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0x3c]
mov ecx, dword [edx + 0x60]
jbe 0x49a282
cmp ecx, esi
jb 0x49a43c
cmp eax, esi
jg 0x49a43f
mov ebx, dword [edx + 0x5c]
imul ecx, esi, 0x78
mov dword [ebp - 0x40], ecx
imul edi, eax, 0x78
jmp 0x49a22c
add edi, 0x78
cmp dword [ebp - 0x40], edi
je 0x49a168
mov eax, dword [ebx + edi + 0x68]
test eax, eax
je 0x49a242
lock dec dword [eax]
jne 0x49a242
push eax
call fcn.00528424
add esp, 4
mov esi, dword [ebx + edi + 0x5c]
test esi, esi
je 0x49a265
lock dec dword [esi + 4]
jne 0x49a265
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
call dword [section..00cfg]
mov ecx, esi
push 1
call dword [ebp - 0x44]
mov esi, dword [ebx + edi]
test esi, esi
je 0x49a220
lock dec dword [esi]
jne 0x49a220
mov ecx, dword [esi + 8]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x49a220
cmp ecx, eax
jb 0x49a442
jl 0x49a445
je 0x49a317
mov dword [ebp - 0x48], esi
mov ebx, dword [edx + 0x5c]
imul ecx, ecx, 0x78
mov dword [ebp - 0x40], ecx
imul edi, eax, 0x78
jmp 0x49a2b8
add edi, 0x78
cmp dword [ebp - 0x40], edi
je 0x49a30e
mov eax, dword [ebx + edi + 0x68]
test eax, eax
je 0x49a2ce
lock dec dword [eax]
jne 0x49a2ce
push eax
call fcn.00528424
add esp, 4
mov esi, dword [ebx + edi + 0x5c]
test esi, esi
je 0x49a2f1
lock dec dword [esi + 4]
jne 0x49a2f1
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
call dword [section..00cfg]
mov ecx, esi
push 1
call dword [ebp - 0x44]
mov esi, dword [ebx + edi]
test esi, esi
je 0x49a2b0
lock dec dword [esi]
jne 0x49a2b0
mov ecx, dword [esi + 8]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x49a2b0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x60]
mov esi, dword [ebp - 0x48]
cmp eax, esi
jb 0x49a448
test esi, esi
js 0x49a44b
je 0x49a168
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax + 0x5c]
imul eax, esi, 0x78
mov dword [ebp - 0x40], eax
xor edi, edi
jmp 0x49a34c
add edi, 0x78
cmp dword [ebp - 0x40], edi
je 0x49a168
mov eax, dword [ebx + edi + 0x68]
test eax, eax
je 0x49a362
lock dec dword [eax]
jne 0x49a362
push eax
call fcn.00528424
add esp, 4
mov esi, dword [ebx + edi + 0x5c]
test esi, esi
je 0x49a385
lock dec dword [esi + 4]
jne 0x49a385
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x44], ecx
call dword [section..00cfg]
mov ecx, esi
push 1
call dword [ebp - 0x44]
mov esi, dword [ebx + edi]
test esi, esi
je 0x49a340
lock dec dword [esi]
jne 0x49a340
mov ecx, dword [esi + 8]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x49a340
sub esp, 0x24
movaps xmm0, xmmword [0x587650]
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.SequenceManager
mov dword [esp + 4], 0x5994f4
mov dword [esp], 0x44
call fcn.00433aa0
add esp, 0x24
jmp 0x49992d
push 0x5aab98
call fcn.00528497
add esp, 4
cmp dword [0x5aab98], 0xffffffff
jne 0x499c03
mov dword [0x5aab94], 0
mov dword [0x5aab90], 0xffffffff
mov ecx, 0x5aab90
push 0
call fcn.004624b0
push 0x5aab98
call fcn.0052850d
add esp, 4
jmp 0x499c03
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3