Function at 0x55a370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x30f8
call fcn.00607e10
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ecx + 8]
mov dword [esp + 0x18], edi
mov edx, dword [esi + 0xcc]
mov edi, dword [eax + 0xcc]
cmp edx, edi
jne 0x55a3a6
mov eax, edx
jmp 0x55a3cb
cmp byte [esi + 0xe8], 5
jne 0x55a3b3
mov eax, edi
jmp 0x55a3cb
cmp byte [eax + 0xe8], 5
jne 0x55a3c0
mov eax, edx
jmp 0x55a3cb
push edi
push edx
push ecx
call fcn.0052daf0
add esp, 0xc
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x18]
push edx
push eax
movsx ecx, byte [ecx + 0x19]
push edi
push dword [ebp + 0x18]
push ecx
call fcn.0055abc0
add esp, 0x14
test eax, eax
jne 0x55aa4e
mov edx, dword [ebp + 0x1c]
mov ecx, dword [edx + 0x10]
cmp byte [ecx + 0x18], 1
jne 0x55a404
movsx eax, byte [ecx + 0x10]
add eax, ecx
jmp 0x55a406
xor eax, eax
cmp esi, eax
je 0x55a44f
mov eax, dword [edx + 0x14]
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], ecx
mov ax, word [edx + 6]
movzx ecx, word [edx + 4]
mov word [edx + 4], ax
mov word [edx + 6], cx
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x5c]
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ecx
mov esi, dword [edi + 0x74]
test esi, esi
je 0x55a44f
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0x74]
cmp byte [ecx + 0x1a], 0
sete al
mov byte [ecx + 0x1a], al
mov esi, dword [ebp + 0xc]
push edx
push dword [ebp + 0x18]
movsx ecx, byte [esi + 0x19]
lea eax, [esi + 0x114]
push eax
push ecx
push esi
call fcn.0055ac40
add esp, 0x14
test eax, eax
jne 0x55aa4e
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x20]
mov edx, dword [esi + 0x6c]
and eax, 0x3fffffff
mov dword [esp + 0x14], edx
cmp eax, edx
jge 0x55a4ae
lea ecx, [eax + eax]
mov eax, edx
cmp edx, ecx
push 1
cmovl eax, ecx
push eax
lea eax, [edi + 0x20]
push eax
push 0x7d8954
call fcn.00467b80
mov edx, dword [esp + 0x24]
lea ecx, [edi + 0x20]
add esp, 0x10
mov dword [ecx + 4], edx
xor edx, edx
cmp dword [edi + 0x24], edx
jle 0x55a4cc
mov eax, dword [esi + 0x68]
mov ecx, dword [ecx]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
lea ecx, [edi + 0x20]
cmp edx, dword [edi + 0x24]
jl 0x55a4b8
mov eax, dword [edi + 0x3c]
cmp word [eax + 4], 0
jne 0x55a518
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + 0x10]
cmp byte [eax + 0x18], 1
jne 0x55a4ea
movsx esi, byte [eax + 0x10]
add esi, eax
jmp 0x55a4ec
xor esi, esi
mov esi, dword [esi + 8]
lea eax, [edi + 0x44]
push 1
push eax
push esi
dec dword [esi + 0x94]
mov byte [esi + 0x9c], 1
call fcn.00529d40
add esp, 0xc
mov byte [esi + 0x9c], 0
inc dword [esi + 0x94]
mov eax, dword [edi + 0x3c]
movzx edx, word [eax + 4]
mov eax, edx
sar eax, 1
imul ecx, eax, 0x70
mov eax, edx
and eax, 1
lea esi, [edx + 2]
lea eax, [eax + eax*2]
sub ecx, 0xffffff80
shl eax, 4
add ecx, eax
lea eax, [edx + 3]
cmp edx, 2
mov dword [esp + 0x10], eax
mov edx, eax
jl 0x55a54c
add ecx, 0x20
inc esi
inc edx
mov eax, dword [edi + 0x3c]
xorps xmm1, xmm1
movsx eax, word [eax + 0x18]
shl eax, 0x10
mov dword [esp + 0x14], eax
movss xmm0, dword [esp + 0x14]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x55a575
add ecx, 0x50
add esi, 2
add edx, 3
mov eax, dword [edi + 0x74]
mov dword [esp + 0x10], eax
test eax, eax
je 0x55a5ae
movzx eax, byte [eax + 0x1a]
mov edi, dword [esp + 0x10]
mov eax, dword [edi + eax*4 + 4]
mov edi, dword [esp + 0x18]
mov eax, dword [eax + 0xcc]
sub dword [eax + 0xc], ecx
sub dword [eax + 0x10], esi
sub dword [eax + 0x14], edx
mov eax, dword [edi + 0x74]
sub word [eax + 0x16], si
sub word [eax + 0x18], dx
sub word [eax + 0x14], cx
mov edi, dword [edi + 0x3c]
movzx eax, word [edi + 2]
push eax
call fcn.0053c9d0
add esp, 4
mov esi, eax
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push edi
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
call dword [edx + 8]
mov esi, dword [ebp + 0xc]
movzx eax, word [esi + 0x2c]
movzx ecx, word [esi + 0x24]
push eax
movzx eax, byte [esi + 0x29]
push eax
movzx eax, byte [esi + 0x28]
push eax
push ecx
mov dword [esp + 0x20], ecx
call fcn.0053c820
mov edi, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x3c], eax
mov word [eax + 4], cx
mov eax, dword [edi + 0x3c]
movups xmm0, xmmword [esi + 0x30]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esi + 0x40]
movups xmmword [eax + 0x20], xmm0
mov ecx, dword [edi + 0x74]
mov eax, dword [edi + 0x3c]
mov dword [ecx + 0xc], eax
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x74]
mov ax, word [eax + 2]
mov word [ecx + 0x10], ax
mov eax, dword [edi + 0x3c]
movzx edx, word [eax + 4]
mov eax, edx
sar eax, 1
imul ecx, eax, 0x70
mov eax, edx
and eax, 1
lea eax, [eax + eax*2]
sub ecx, 0xffffff80
shl eax, 4
add eax, ecx
lea ecx, [edx + 2]
mov dword [esp + 0x30], eax
add eax, 0x20
mov dword [esp + 0x2c], eax
lea eax, [edx + 3]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
cmp edx, 2
jl 0x55a682
mov edx, dword [esp + 0x2c]
inc ecx
inc eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
jmp 0x55a686
mov edx, dword [esp + 0x30]
mov eax, dword [edi + 0x3c]
xorps xmm1, xmm1
movsx eax, word [eax + 0x18]
shl eax, 0x10
mov dword [esp + 0x14], eax
movss xmm0, dword [esp + 0x14]
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x55a6be
add dword [esp + 0x2c], 0x50
add edx, 0x50
add ecx, 2
mov dword [esp + 0x30], edx
add dword [esp + 0x38], 3
mov dword [esp + 0x34], ecx
mov ecx, dword [edi + 0x74]
lea eax, [esp + 0x2c]
push eax
lea eax, [edi + 0x44]
push eax
movzx eax, byte [ecx + 0x1a]
mov ecx, dword [ecx + eax*4 + 4]
mov ecx, dword [ecx + 0xcc]
call fcn.00533140
mov ecx, dword [edi + 0x3c]
movzx eax, byte [ecx + 0xa]
imul eax, dword [esp + 0x10]
push eax
movzx eax, word [ecx + 6]
add ecx, 0x30
push dword [esi + 0x50]
shl eax, 5
add eax, ecx
push eax
call fcn.0045d810
mov eax, dword [esp + 0x1c]
shl eax, 5
push eax
mov eax, dword [edi + 0x3c]
push dword [esi + 0x5c]
add eax, 0x30
push eax
call fcn.0045d810
mov ecx, dword [ebp + 8]
add esp, 0x18
cmp byte [ecx + 1], 0
je 0x55a769
mov ecx, dword [edi + 0x3c]
xor esi, esi
xor edi, edi
movzx eax, word [ecx + 6]
lea edx, [ecx + 0x30]
shl eax, 5
add edx, eax
movzx eax, byte [ecx + 0xa]
cmp di, word [ecx + 4]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jae 0x55a769
nop word [eax + eax]
mov dword [edx + 8], 0
inc esi
add edx, eax
mov eax, dword [edi + 0x3c]
movzx eax, word [eax + 4]
cmp esi, eax
mov eax, dword [esp + 0x14]
jl 0x55a750
mov eax, dword [edi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], connect
call dword [eax + 0x30]
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
je 0x55a8f1
xor ecx, ecx
mov dword [esp + 0x14], ecx
test eax, eax
jle 0x55a8f1
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
movzx edx, word [eax + ecx*2]
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30a0], 0x7f7fffee
mov dword [esp + 0x30c0], 0
cmp byte [eax + 0xa], 0
mov dword [esp + 0x30c4], 0
mov dword [esp + 0x74], 0
je 0x55a812
lea eax, [esi + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov ecx, edi
push edx
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [edi]
mov ecx, edi
push dword [esp + 0x1c]
mov esi, eax
mov edx, dword [edx + 0x2c]
call edx
cmp dword [edi + 8], 0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 1
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], 0
mov word [esp + 0x6c], ax
jne 0x55a88b
mov ax, word [edi + 0x12]
jmp 0x55a88d
xor eax, eax
mov esi, dword [ebp + 0x10]
mov word [esp + 0x6e], ax
lea eax, [esp + 0x3c]
push eax
push dword [esi + 8]
call fcn.00528fe0
add esp, 8
cmp word [esi + 0x204], 0
je 0x55a8bd
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.005352d0
add esp, 8
mov eax, dword [ebp + 0x14]
cmp word [eax + 0x204], 0
je 0x55a8d8
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.005352d0
add esp, 8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp ecx, eax
jl 0x55a7b3
mov ecx, dword [ebp + 8]
cmp byte [ecx + 9], 0
je 0x55aa0f
xor ecx, ecx
mov dword [esp + 0x14], ecx
test eax, eax
jle 0x55aa0f
nop dword [eax]
mov eax, dword [esp + 0x20]
movzx esi, word [eax + ecx*2]
mov ecx, edi
mov eax, dword [edi]
push esi
mov dword [esp + 0x20], esi
mov eax, dword [eax + 0x28]
call eax
test byte [eax + 0xf], 1
jne 0x55a9fc
mov eax, dword [edi]
mov ecx, edi
push esi
mov eax, dword [eax + 0x28]
call eax
mov edx, dword [edi]
mov ecx, edi
push dword [esp + 0x1c]
mov esi, eax
mov edx, dword [edx + 0x2c]
call edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
lea eax, [esi + 0x14]
mov dword [esp + 0x54], esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x14]
push dword [esi + 8]
mov dword [esp + 0x44], 2
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], 4
mov word [esp + 0x60], 0
mov byte [esp + 0x62], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call fcn.00528350
add esp, 8
mov dword [esp + 0x3c], 0
cmp word [esi + 0x204], 0
je 0x55a9d9
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.00535220
add esp, 8
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x3c], 1
cmp word [eax + 0x204], 0
je 0x55a9fc
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.00535220
add esp, 8
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x10]
jl 0x55a910
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call fcn.006ae9c0
mov eax, dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x24], 0
test eax, eax
js 0x55aa46
and eax, 0x3fffffff
mov ecx, 0x7d8954
add eax, eax
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x24]
call dword [eax + 0x10]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret