Function at 0x488f60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x28], eax
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x488f89
push esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea eax, [esi + 8]
mov dword [ebp - 0x20], esi
mov ecx, dword [esi + 8]
mov esi, eax
movzx eax, byte [edi + 0xb]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov dword [ebp - 0x14], esi
je 0x4890aa
mov ecx, dword [ebp - 0x24]
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
test cl, cl
jns 0x488fc0
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x488fce
cmp dword [ebp - 0x10], 0
je 0x489583
mov edx, esi
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
jmp 0x488fe8
mov edx, esi
mov esi, dword [esi]
test esi, esi
je 0x489049
movzx ebx, byte [esi + 0x1b]
test bl, bl
jns 0x489000
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
test ebx, ebx
jne 0x489007
jmp 0x48900f
lea eax, [esi + 0x10]
test ebx, ebx
je 0x48900f
test eax, eax
je 0x489580
cmp ebx, edi
mov ecx, edi
cmovb ecx, ebx
test ecx, ecx
je 0x489040
push ecx
push dword [ebp - 0x10]
push eax
mov edi, edx
call fcn.0052a60d
mov edx, edi
mov edi, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x489040
jns 0x488fe0
jmp 0x489044
cmp ebx, edi
jae 0x488fe0
add esi, 4
jmp 0x488fe2
mov esi, dword [ebp - 0x14]
cmp edx, esi
je 0x4890aa
movzx ebx, byte [edx + 0x1b]
test bl, bl
jns 0x489064
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0x10]
test ebx, ebx
jne 0x48906b
jmp 0x489073
lea eax, [edx + 0x10]
test ebx, ebx
je 0x489073
test eax, eax
je 0x489586
cmp edi, ebx
mov ecx, ebx
cmovb ecx, edi
test ecx, ecx
je 0x4890a6
push ecx
push eax
push dword [ebp - 0x10]
mov edi, edx
call fcn.0052a60d
mov edx, edi
mov edi, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x4890a6
js 0x4890aa
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x20]
jmp 0x48933f
cmp edi, ebx
jae 0x489098
push 0xc
call fcn.005283f4
add esp, 4
mov edx, eax
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
js 0x4890d2
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
movsd xmm0, qword [ecx]
movsd qword [edx], xmm0
jmp 0x489135
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
cmp ebx, 0xa
ja 0x4890ea
mov byte [edx + 0xb], bl
mov eax, edx
cmp eax, esi
jbe 0x48911a
jmp 0x489126
cmp ebx, 0x7ffffff0
jae 0x48957b
mov edi, ebx
or edi, 0xf
inc edi
push edi
call fcn.005283f4
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
or edi, 0x80000000
mov dword [edx + 8], edi
mov dword [edx + 4], ebx
cmp eax, esi
ja 0x489126
lea ecx, [eax + ebx]
inc ecx
cmp ecx, esi
ja 0x489589
inc ebx
push ebx
push esi
push eax
call fcn.0052bc90
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov edi, esi
mov eax, dword [ebp - 0x1c]
test eax, eax
mov ecx, esi
je 0x489267
movzx edx, byte [eax + 0x1b]
test dl, dl
jns 0x489158
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
test edx, edx
jne 0x48915f
jmp 0x489167
lea ebx, [eax + 0x10]
test edx, edx
je 0x489167
test ebx, ebx
je 0x489257
mov ecx, dword [ebp - 0x24]
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test cl, cl
jns 0x48917e
mov esi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
test esi, esi
mov dword [ebp - 0x10], esi
je 0x489193
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], 0
mov ecx, ebx
jne 0x4891a0
int3
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
nop dword [eax + eax]
cmp esi, edx
mov ebx, edx
cmovb ebx, esi
test ebx, ebx
je 0x4891d0
mov esi, edx
push ebx
mov dword [ebp - 0x1c], ecx
push ecx
push dword [ebp - 0x14]
call fcn.0052a60d
add esp, 0xc
test eax, eax
je 0x4891e0
jns 0x489200
jmp 0x4891e7
cmp esi, edx
jb 0x4891e7
jmp 0x489220
mov eax, esi
cmp dword [ebp - 0x10], esi
jae 0x489200
mov eax, dword [edi]
mov ecx, edi
test eax, eax
mov esi, dword [ebp - 0x10]
jne 0x48922e
jmp 0x489267
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.0052a60d
mov edx, esi
add esp, 0xc
test eax, eax
je 0x489220
mov esi, dword [ebp - 0x10]
js 0x489227
jmp 0x48925a
mov esi, dword [ebp - 0x10]
cmp edx, esi
jae 0x48925a
mov eax, dword [edi + 4]
test eax, eax
je 0x489264
movzx edx, byte [eax + 0x1b]
test dl, dl
jns 0x489240
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
jmp 0x489243
lea ecx, [eax + 0x10]
mov edi, eax
test edx, edx
je 0x4891a0
mov edi, eax
test ecx, ecx
jne 0x4891a0
int3
mov esi, edi
mov edi, dword [ebp - 0x20]
jmp 0x489339
lea ecx, [edi + 4]
mov dword [ebp - 0x14], ecx
push 0x20
call fcn.005283f4
add esp, 4
mov esi, eax
add eax, 0x10
cmp byte [ebp - 0x24], 0
js 0x489292
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
movsd xmm0, qword [edx]
movsd qword [eax], xmm0
jmp 0x4892fb
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
cmp ebx, 0xa
ja 0x4892a8
mov byte [esi + 0x1b], bl
cmp eax, edx
jbe 0x4892e3
jmp 0x4892ef
mov dword [ebp - 0x1c], edx
cmp ebx, 0x7ffffff0
jae 0x48957b
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
or ebx, 0xf
inc ebx
push ebx
call fcn.005283f4
add esp, 4
mov dword [esi + 0x10], eax
or ebx, 0x80000000
mov dword [esi + 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [esi + 0x14], ebx
mov edx, dword [ebp - 0x1c]
cmp eax, edx
ja 0x4892ef
lea ecx, [eax + ebx]
inc ecx
cmp ecx, edx
ja 0x48958c
inc ebx
push ebx
push edx
push eax
call fcn.0052bc90
add esp, 0xc
mov dword [esi + 0x1c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], edi
mov edx, dword [ebp - 0x14]
mov dword [edx], esi
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
mov eax, esi
test ecx, ecx
je 0x48932a
mov dword [edi + 4], ecx
mov eax, dword [edx]
push eax
push dword [edi + 8]
call fcn.0043152a
add esp, 8
inc dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
lea ebx, [edi + 0x14]
mov ecx, dword [edi + 0x14]
mov edx, ebx
test ecx, ecx
mov esi, dword [ebp - 0x28]
je 0x489370
mov eax, ebx
lea edx, [ecx + 4]
cmp dword [ecx + 0x10], esi
cmovae edx, ecx
cmovae eax, ecx
mov ecx, dword [edx]
test ecx, ecx
jne 0x489350
mov edx, ebx
cmp eax, ebx
je 0x489370
cmp esi, dword [eax + 0x10]
cmovb eax, ebx
mov edx, eax
mov dword [ebp - 0x24], edx
mov eax, dword [0x5a8224]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x48952f
mov esi, dword [ebp - 0x18]
cmp byte [esi + 0xb], 0
jns 0x4893a2
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x48951d
mov ecx, dword [0x5a821c]
mov dword [eax + ecx*8], esi
mov ecx, dword [0x5a8220]
mov edx, dword [0x5a821c]
mov dword [eax + edx*8 + 4], ecx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x14], eax
cmp ebx, eax
jne 0x489421
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x1c]
je 0x4894a3
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x20]
mov edi, dword [edx + 0x14]
test eax, eax
jne 0x489438
lea ebx, [ecx + 0x20]
mov esi, ebx
jmp 0x489451
mov dword [ebp - 0x10], ecx
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 - 0x10]
call edi
add ebx, 4
cmp ebx, dword [ebp - 0x14]
je 0x4893e0
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xb], 0
mov ecx, eax
jns 0x489400
mov ecx, dword [eax]
jmp 0x489400
mov eax, dword [esi]
mov ebx, esi
test eax, eax
je 0x489451
mov esi, eax
mov eax, dword [eax + 0x10]
cmp edi, eax
jb 0x489430
jbe 0x489503
mov eax, dword [esi + 4]
test eax, eax
jne 0x489438
lea ebx, [esi + 4]
mov dword [ebp - 0x10], esi
push 0x18
call fcn.005283f4
add esp, 4
mov esi, eax
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov dword [ebx], esi
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
mov eax, esi
test ecx, ecx
je 0x489492
mov dword [edi + 0x1c], ecx
mov eax, dword [ebx]
push eax
push dword [edi + 0x20]
call fcn.0043152a
add esp, 8
inc dword [edi + 0x24]
jmp 0x489506
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x28]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4894c8
push eax
call fcn.0042f1aa
add esp, 4
mov ebx, dword [ebp - 0x18]
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x59f9d0]
bt ecx, eax
mov esi, dword [ebp - 0x28]
jae 0x4894ef
push ebx
call fcn.0042f0b8
add esp, 4
jmp 0x4894fb
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x5a79d0], 1
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], esi
jmp 0x48950c
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4
test esi, esi
je 0x4893d0
call fcn.004625e0
jmp 0x4893b7
push 0x5a8224
call fcn.00528497
add esp, 4
cmp dword [0x5a8224], 0xffffffff
jne 0x489394
mov dword [0x5a821c], 0xffffffff
mov dword [0x5a8220], 0
mov ecx, 0x5a821c
push 0
call fcn.004624b0
push 0x5a8224
call fcn.0052850d
add esp, 4
jmp 0x489394
call fcn.0053bf0b
int3
int3
int3
int3
int3