Function at 0x423720
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
sub esi, 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], reloc.WSOCK32.dll_recv
js 0x4237b0
mov eax, dword [edi]
mov ebx, dword [eax + esi*4]
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebp + 0xc]
cmp ecx, edx
jne 0x423766
mov ecx, dword [ebx + 0x18]
jmp 0x42376b
cmp dword [ebx + 0x18], edx
jne 0x4237ab
test ecx, ecx
je 0x4237ab
add dword [edi + 4], 0xffffffff
mov ecx, dword [edi + 4]
mov ecx, dword [eax + ecx*4]
mov dword [eax + esi*4], ecx
mov edx, dword [esp + 0x28]
and edx, 0x3fffffff
cmp dword [esp + 0x24], edx
jne 0x42379b
lea eax, [esp + 0x20]
push 4
push eax
call fcn.00402730
add esp, 8
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov dword [ecx + edx*4], ebx
add dword [esp + 0x24], 1
sub esi, 1
jns 0x423752
fldz
mov esi, dword [esp + 0x24]
add esi, 0xffffffff
fst dword [esp + 0x1c]
fstp dword [esp + 0x18]
js 0x423816
mov eax, dword [esp + 0x20]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax + 0x14]
cmp ecx, dword [ebp + 0xc]
jne 0x4237d7
mov eax, dword [eax + 0x18]
jmp 0x4237d9
mov eax, ecx
fld dword [ebp + 0x10]
push ecx
fstp dword [esp]
push eax
push edi
call fcn.00423720
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
add esp, 0xc
fld st(0)
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x42380f
fstp dword [esp + 0x18]
jmp 0x423811
fstp st(0)
sub esi, 1
jns 0x4237c3
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + 0xd8]
cmp al, 7
je 0x423827
cmp al, 6
jne 0x423861
mov esi, dword [esp + 0x28]
test esi, esi
js 0x423858
mov ecx, dword [0x4c6060]
push ecx
and esi, 0x3fffffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x20]
push 0x17
lea edx, [esi*4]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
fldz
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ecx + 0xd0]
mov edx, dword [edx + 0x14]
add ecx, 0xd0
lea eax, [esp + 0x70]
push eax
call edx
fld dword [esp + 0x84]
fld dword [esp + 0x98]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x423896
fxch st(1)
fst dword [esp + 0x10]
jmp 0x42389c
fst dword [esp + 0x10]
fxch st(1)
fld dword [esp + 0x70]
fld dword [esp + 0x10]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4238b5
fstp st(0)
fst dword [esp + 0x10]
jmp 0x4238b9
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x1c]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jp 0x42390e
mov eax, dword [esp + 0x28]
fstp st(0)
test eax, eax
fstp st(0)
fstp st(0)
fstp st(0)
js 0x423903
and eax, 0x3fffffff
mov esi, eax
mov eax, dword [0x4c6060]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x20]
push 0x17
lea ecx, [esi*4]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
fld dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [esp + 0x10]
fmul dword [ebp + 0x10]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x423932
fstp st(0)
jmp 0x423934
fstp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fcom st(1)
fnstsw ax
test ah, 5
jnp 0x423955
fstp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
jmp 0x423957
fstp st(0)
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x423966
fst dword [esp + 0x70]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x423978
fst dword [esp + 0x84]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x42398c
fstp dword [esp + 0x98]
jmp 0x42398e
fstp st(0)
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x70]
push eax
call fcn.0043d690
fld dword [esp + 0xc]
fstp dword [esp + 0xc]
fld dword [esp + 0x10]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld dword [esp + 0xc]
fld dword [esp + 0x18]
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x4239c4
fstp st(0)
jmp 0x4239c6
fstp st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fld dword [esp + 0x14]
fcom st(1)
fnstsw ax
test ah, 5
jp 0x4239df
fstp st(0)
jmp 0x4239e1
fstp st(1)
mov eax, dword [esp + 0x28]
fstp dword [esp + 0xc]
test eax, eax
js 0x423a17
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x20]
push 0x17
lea edx, [esi*4]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
fld dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret