Function at 0x41d8b8
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test byte [ebx + 1], 0x20
je 0x41d8d6
push ebx
call fcn.0043f598
pop ecx
mov ebx, eax
mov ecx, dword [ebx]
test cl, 0xa
je 0x41da33
test cl, 2
je 0x41d8ec
mov eax, dword [ebx + 8]
cdq
jmp 0x41d8f2
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov eax, esi
cdq
add eax, dword [ebp - 8]
adc edx, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
test esi, esi
jl 0x41d926
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jne 0x41d91e
cmp eax, dword [ebp - 8]
setae cl
jmp 0x41d921
setge cl
and ecx, 1
jmp 0x41d93f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jne 0x41d939
cmp eax, dword [ebp - 8]
setb cl
jmp 0x41d93c
setl cl
and ecx, 1
test ecx, ecx
je 0x41d9ea
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41d958
cmp dword [ebp - 0x10], 0x80000000
jb 0x41d99f
jmp 0x41d95a
jl 0x41d99f
cmp dword [ebp - 0xc], 0
jne 0x41d96b
cmp dword [ebp - 0x10], 0x7fffffff
ja 0x41d99f
jmp 0x41d96d
jg 0x41d99f
mov dword [ebx], 2
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41d984
cmp dword [ebp - 0x10], 0xc4653601
jae 0x41d98c
jmp 0x41d986
jge 0x41d98c
mov ax, 0x14
jmp 0x41d990
mov ax, 0xa
mov word [ebx + 0xc], ax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], eax
jmp 0x41db36
mov dword [ebx], 8
mov edx, dword [ebp - 0x10]
mov dword [ebx + 8], edx
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0xc], edx
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41d9c2
cmp dword [ebp - 0x10], 0xc4653601
jb 0x41d9d7
jmp 0x41d9c4
jl 0x41d9d7
cmp dword [ebp - 0xc], 2
jne 0x41d9d5
cmp dword [ebp - 0x10], 0x540be3ff
jbe 0x41d9dd
jmp 0x41d9d7
jle 0x41d9dd
mov cx, 0x14
jmp 0x41d9e1
mov cx, 0xa
mov word [ebx + 0x10], cx
jmp 0x41db36
mov dword [ebx], 0x10
fild qword [ebp - 8]
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
faddp st(1)
fstp qword [ebx + 8]
fld qword [ebx + 8]
fcomp qword [0x41db40]
fnstsw ax
sahf
ja 0x41da1a
fld qword [ebx + 8]
fcomp qword [0x41db48]
fnstsw ax
sahf
jae 0x41da20
mov dx, 0x14
jmp 0x41da24
mov dx, 0xa
mov word [ebx + 0x10], dx
mov word [ebx + 0x12], 0
jmp 0x41db36
test byte [ebx], 0x10
je 0x41da73
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fadd qword [ebx + 8]
fstp qword [ebx + 8]
fld qword [ebx + 8]
fcomp qword [0x41db40]
fnstsw ax
sahf
ja 0x41da60
fld qword [ebx + 8]
fcomp qword [0x41db48]
fnstsw ax
sahf
jae 0x41da66
mov dx, 0x14
jmp 0x41da6a
mov dx, 0xa
mov word [ebx + 0x10], dx
jmp 0x41db36
test byte [ebx], 0x60
je 0x41da86
and dword [ebx], 0xfffbffff
add dword [ebx + 8], esi
jmp 0x41db36
push 0
push ebx
call fcn.0042d58c
add esp, 8
test eax, eax
je 0x41dad5
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edi, eax
push esi
call fcn.00422db8
pop ecx
push 0
mov eax, dword [edi]
mov edx, dword [eax - 4]
push edx
push ebx
push ebx
push 0
call fcn.0042d5d0
add esp, 0x14
sub dword [edi], 4
mov ecx, dword [edi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x41db36
push eax
call fcn.0043edc0
pop ecx
jmp 0x41db36
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov edi, eax
push esi
call fcn.00422db8
pop ecx
mov eax, dword [edi]
mov edx, dword [eax - 4]
push edx
push ebx
push 2
push 0x53866f
push 0
push 0x439
push 1
call fcn.004570b8
add esp, 0x1c
mov esi, eax
test esi, esi
je 0x41db36
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x41db25
push eax
call fcn.0043edc0
pop ecx
push esi
push ebx
call fcn.0043f03c
add esp, 8
push esi
call fcn.0043d978
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret