Function at 0x41c800
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x840
fldz
push ebx
push ebp
mov ebp, dword [esp + 0x858]
push esi
add ebp, 1
push edi
mov edi, dword [esp + 0x85c]
mov eax, ebp
sub eax, edi
xor ebx, ebx
cmp eax, 4
mov esi, edi
mov dword [esp + 0x14], ebp
jl 0x41c8ab
mov edx, dword [esp + 0x858]
mov eax, dword [edx]
mov ecx, edi
shl ecx, 4
lea edx, [ecx + eax + 0x1c]
mov ecx, ebp
sub ecx, edi
sub ecx, 4
shr ecx, 2
add ecx, 1
lea esi, [edi + ecx*4]
fcom dword [edx - 0x10]
fnstsw ax
test ah, 0x44
jp 0x41c861
mov eax, 1
jmp 0x41c863
xor eax, eax
fcom dword [edx]
add ebx, eax
fnstsw ax
test ah, 0x44
jp 0x41c875
mov eax, 1
jmp 0x41c877
xor eax, eax
fcom dword [edx + 0x10]
add ebx, eax
fnstsw ax
test ah, 0x44
jp 0x41c88a
mov eax, 1
jmp 0x41c88c
xor eax, eax
fcom dword [edx + 0x20]
add ebx, eax
fnstsw ax
test ah, 0x44
jp 0x41c89f
mov eax, 1
jmp 0x41c8a1
xor eax, eax
add ebx, eax
add edx, 0x40
sub ecx, 1
jne 0x41c850
cmp esi, ebp
jge 0x41c8e1
mov edx, dword [esp + 0x858]
mov eax, dword [edx]
mov ecx, esi
shl ecx, 4
lea edx, [ecx + eax + 0xc]
mov ecx, ebp
sub ecx, esi
fcom dword [edx]
fnstsw ax
test ah, 0x44
jp 0x41c8d5
mov eax, 1
jmp 0x41c8d7
xor eax, eax
add ebx, eax
add edx, 0x10
sub ecx, 1
jne 0x41c8c5
cmp ebx, 3
jle 0x41cb88
mov ecx, dword [esp + 0x860]
fstp st(0)
lea eax, [edi + ecx]
cdq
sub eax, edx
mov ebp, eax
lea ecx, [esp + 0x440]
sar ebp, 1
call fcn.0041dbc0
mov esi, dword [esp + 0x858]
mov edx, dword [esi]
lea ecx, [esp + 0x30]
mov dword [esp + 0x440], edx
call fcn.0041dbc0
mov eax, dword [esi]
mov esi, dword [esp + 0x854]
mov dword [esp + 0x30], eax
mov al, 1
test al, al
mov byte [esp + 0x12], al
lea ebx, [ebp + 1]
je 0x41c982
lea esp, [esp]
mov edx, dword [esp + 0x858]
lea ecx, [esp + 0x440]
push ecx
push ebp
push edi
push edx
push esi
mov dword [esp + 0x45c], 0
call fcn.0041c800
lea eax, [esp + 0x26]
push eax
push esi
push ebp
lea ecx, [esp + 0x460]
push edi
push ecx
call fcn.00418f00
add esp, 0x28
cmp byte [esp + 0x12], 0
jne 0x41c940
mov byte [esp + 0x12], 1
jmp 0x41c990
mov eax, dword [esp + 0x860]
mov ecx, dword [esp + 0x858]
lea edx, [esp + 0x30]
push edx
push eax
push ebx
push ecx
push esi
mov dword [esp + 0x4c], 0
call fcn.0041c800
mov eax, dword [esp + 0x874]
lea edx, [esp + 0x26]
push edx
push esi
push eax
lea ecx, [esp + 0x50]
push ebx
push ecx
call fcn.00418f00
add esp, 0x28
cmp byte [esp + 0x12], 0
jne 0x41c990
mov eax, dword [esp + 0x860]
lea edx, [esp + 0x12]
push edx
push esi
push eax
lea ecx, [esp + 0x44c]
push edi
push ecx
mov byte [esp + 0x26], 1
call fcn.00418f00
mov eax, dword [esp + 0x874]
lea edx, [esp + 0x27]
push edx
push esi
push eax
lea ecx, [esp + 0x50]
push edi
push ecx
mov byte [esp + 0x3b], 1
call fcn.00418f00
add esp, 0x28
cmp byte [esp + 0x12], 0
jne 0x41ca2b
cmp byte [esp + 0x13], 0
jne 0x41ca2b
xor al, al
jmp 0x41ca2d
mov al, 1
test al, al
mov byte [esp + 0x12], al
jne 0x41c940
mov eax, dword [esp + 0x448]
test eax, eax
mov ebx, dword [esp + 0x864]
jne 0x41caa0
xor edi, edi
cmp dword [esp + 0x38], edi
jle 0x41cb0e
lea esi, [ebx + 4]
lea ebx, [ebx]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x34]
and eax, 0x3fffffff
cmp dword [esi + 4], eax
lea ebp, [edx + edi*8]
jne 0x41ca7f
push 8
push esi
call fcn.00402730
add esp, 8
mov edx, dword [ebp]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + ecx*8], edx
mov edx, dword [ebp + 4]
mov dword [eax + ecx*8 + 4], edx
add dword [esi + 4], 1
add edi, 1
cmp edi, dword [esp + 0x38]
jl 0x41ca60
jmp 0x41cb0e
cmp dword [esp + 0x38], 0
jne 0x41caf7
xor edi, edi
test eax, eax
jle 0x41cb0e
lea esi, [ebx + 4]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x444]
and ecx, 0x3fffffff
cmp dword [esi + 4], ecx
lea ebp, [eax + edi*8]
jne 0x41cad3
push 8
push esi
call fcn.00402730
add esp, 8
mov edx, dword [ebp]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [eax + ecx*8], edx
mov edx, dword [ebp + 4]
mov dword [eax + ecx*8 + 4], edx
add dword [esi + 4], 1
add edi, 1
cmp edi, dword [esp + 0x448]
jl 0x41cab0
jmp 0x41cb0e
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x448]
push ecx
push esi
call fcn.0041bbd0
add esp, 0x10
cmp dword [ebx + 8], 0
jne 0x41cb24
lea edx, [esp + 0x444]
push edx
lea ecx, [ebx + 4]
call fcn.0041d530
mov eax, dword [esp + 0x3c]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
js 0x41cb57
and eax, 0x3fffffff
mov esi, eax
mov eax, dword [0x4c6060]
push eax
call edi
mov edx, dword [esp + 0x34]
push 0x17
lea ecx, [esi*8]
push ecx
push edx
mov ecx, eax
call fcn.004023e0
mov eax, dword [esp + 0x44c]
test eax, eax
js 0x41cc86
and eax, 0x3fffffff
mov esi, eax
mov eax, dword [0x4c6060]
push eax
call edi
mov edx, dword [esp + 0x444]
lea ecx, [esi*8]
jmp 0x41cc7b
cmp edi, dword [esp + 0x14]
mov eax, dword [esp + 0x858]
mov ecx, dword [eax]
mov ebp, dword [esp + 0x864]
mov dword [ebp], ecx
lea edx, [esp + 0x24]
mov ecx, reloc.WSOCK32.dll_closesocket
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ecx
mov esi, edi
jge 0x41cc16
shl edi, 4
mov eax, dword [esp + 0x858]
mov eax, dword [eax]
fcom dword [edi + eax + 0xc]
fnstsw ax
test ah, 0x44
jp 0x41cc0a
and ecx, 0x3fffffff
cmp dword [esp + 0x1c], ecx
jne 0x41cbf6
lea ecx, [esp + 0x18]
fstp st(0)
push 4
push ecx
call fcn.00402730
fldz
mov edx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x1c]
mov dword [edx + eax*4], esi
add dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add esi, 1
add edi, 0x10
cmp esi, dword [esp + 0x14]
jl 0x41cbbf
mov eax, ebx
fstp st(0)
sub eax, 0
je 0x41cc58
sub eax, 1
je 0x41cc4a
sub eax, 1
mov eax, dword [edx + 4]
je 0x41cc3d
mov ecx, dword [edx + 8]
push ecx
mov ecx, dword [edx]
push eax
push ecx
mov ecx, ebp
call fcn.0041d6d0
jmp 0x41cc54
mov ecx, dword [edx]
push eax
push ecx
mov ecx, ebp
call fcn.0041d630
jmp 0x41cc54
mov edx, dword [edx]
push edx
mov ecx, ebp
call fcn.0041d5d0
mov ecx, dword [esp + 0x20]
test ecx, ecx
js 0x41cc86
mov eax, dword [0x4c6060]
and ecx, 0x3fffffff
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x18]
lea ecx, [esi*4]
push 0x17
push ecx
push edx
mov ecx, eax
call fcn.004023e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret