Function at 0x455af0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov edx, ecx
xor ebp, ebp
cmp dword [edx + 0x4c], ebp
push esi
push edi
mov dword [esp + 0x10], edx
jle 0x455b6b
jmp 0x455b10
mov eax, dword [edx + 0x48]
mov esi, dword [eax + ebp*4]
add esi, 0x10
xor edi, edi
cmp dword [esi + 0x50], edi
jle 0x455b63
mov ecx, dword [esi + 0x4c]
mov ecx, dword [ecx + edi*8 + 4]
movsx eax, byte [ecx + 0x10]
add eax, ecx
cmp byte [eax + 0xd8], 7
je 0x455b5b
movzx edx, word [eax + 0x94]
push edx
push ebp
mov ecx, ebx
call fcn.0046a5c0
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, dword [ecx]
neg eax
cmp dword [edx], eax
je 0x455d21
mov edx, dword [esp + 0x10]
add edi, 1
cmp edi, dword [esi + 0x50]
jl 0x455b20
add ebp, 1
cmp ebp, dword [edx + 0x4c]
jl 0x455b10
xor eax, eax
cmp dword [edx + 0x4c], eax
mov dword [esp + 0x50], eax
jle 0x455c05
lea ebx, [ebx]
mov ecx, dword [edx + 0x48]
mov esi, dword [ecx + eax*4]
xor ebp, ebp
cmp word [esi + 0x9c], bp
jbe 0x455bf5
xor edi, edi
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + edi + 4]
add eax, edi
cmp byte [ecx + 0xd8], 7
je 0x455be0
mov eax, dword [eax + 8]
cmp byte [eax + 0xd8], 7
je 0x455be0
movzx edx, word [eax + 0x94]
movzx eax, word [ecx + 0x94]
push edx
push eax
mov ecx, ebx
call fcn.0046a5c0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
mov eax, dword [edx]
neg ecx
cmp dword [eax], ecx
je 0x455d21
mov edx, dword [esp + 0x10]
movzx ecx, word [esi + 0x9c]
add ebp, 1
add edi, 0x30
cmp ebp, ecx
jl 0x455b93
mov eax, dword [esp + 0x50]
add eax, 1
cmp eax, dword [edx + 0x4c]
mov dword [esp + 0x50], eax
jl 0x455b80
lea eax, [esp + 0x20]
xor ebp, ebp
cmp dword [edx + 0x3c], ebp
mov dword [esp + 0x14], eax
mov eax, reloc.WSOCK32.dll_inet_addr
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
jle 0x455cd6
mov ecx, dword [edx + 0x38]
cmp dword [ecx + ebp*4], 0
lea eax, [ecx + ebp*4]
je 0x455cc6
mov dword [esp + 0x18], 0
mov ecx, dword [eax]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x14]
push eax
call edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
xor esi, esi
or edi, 0xffffffff
cmp esi, edx
jge 0x455cc2
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0xd8], 7
je 0x455c6a
mov edi, esi
add esi, 1
cmp edi, 0xffffffff
je 0x455c58
cmp esi, edx
jge 0x455cc2
jmp 0x455c80
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0xd8], 7
je 0x455cbb
movzx edx, word [eax + 0x94]
mov eax, dword [ecx + edi*4]
movzx ecx, word [eax + 0x94]
push edx
push ecx
mov ecx, ebx
call fcn.0046a5c0
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
mov ecx, dword [eax]
neg edx
cmp dword [ecx], edx
je 0x455d32
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esi, 1
cmp esi, edx
jl 0x455c80
mov edx, dword [esp + 0x10]
add ebp, 1
cmp ebp, dword [edx + 0x3c]
jl 0x455c25
mov eax, dword [esp + 0x1c]
test eax, eax
js 0x455d03
and eax, 0x3fffffff
mov esi, eax
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
push 0x17
lea ecx, [esi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov edx, dword [ecx]
neg eax
cmp dword [edx], eax
mov eax, dword [esp + 0x4c]
pop edi
pop esi
sete cl
pop ebp
mov byte [eax], cl
pop ebx
add esp, 0x38
ret 8
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov byte [eax], 1
pop ebx
add esp, 0x38
ret 8
mov eax, dword [esp + 0x1c]
test eax, eax
mov edi, dword [esp + 0x4c]
mov byte [edi], 1
js 0x455d6b
mov edx, dword [0x4c6060]
and eax, 0x3fffffff
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
push 0x17
lea ecx, [esi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8