Function at 0x41db00
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 0x41db1e
push ebx
call fcn.0043f7e0
pop ecx
mov ebx, eax
mov ecx, dword [ebx]
test cl, 0xa
je 0x41dc7b
test cl, 2
je 0x41db34
mov eax, dword [ebx + 8]
cdq
jmp 0x41db3a
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 0x41db6e
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jne 0x41db66
cmp eax, dword [ebp - 8]
setae cl
jmp 0x41db69
setge cl
and ecx, 1
jmp 0x41db87
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jne 0x41db81
cmp eax, dword [ebp - 8]
setb cl
jmp 0x41db84
setl cl
and ecx, 1
test ecx, ecx
je 0x41dc32
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41dba0
cmp dword [ebp - 0x10], 0x80000000
jb 0x41dbe7
jmp 0x41dba2
jl 0x41dbe7
cmp dword [ebp - 0xc], 0
jne 0x41dbb3
cmp dword [ebp - 0x10], 0x7fffffff
ja 0x41dbe7
jmp 0x41dbb5
jg 0x41dbe7
mov dword [ebx], 2
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41dbcc
cmp dword [ebp - 0x10], 0xc4653601
jae 0x41dbd4
jmp 0x41dbce
jge 0x41dbd4
mov ax, 0x14
jmp 0x41dbd8
mov ax, 0xa
mov word [ebx + 0xc], ax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], eax
jmp 0x41dd7e
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 0x41dc0a
cmp dword [ebp - 0x10], 0xc4653601
jb 0x41dc1f
jmp 0x41dc0c
jl 0x41dc1f
cmp dword [ebp - 0xc], 2
jne 0x41dc1d
cmp dword [ebp - 0x10], 0x540be3ff
jbe 0x41dc25
jmp 0x41dc1f
jle 0x41dc25
mov cx, 0x14
jmp 0x41dc29
mov cx, 0xa
mov word [ebx + 0x10], cx
jmp 0x41dd7e
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 [0x41dd88]
fnstsw ax
sahf
ja 0x41dc62
fld qword [ebx + 8]
fcomp qword [0x41dd90]
fnstsw ax
sahf
jae 0x41dc68
mov dx, 0x14
jmp 0x41dc6c
mov dx, 0xa
mov word [ebx + 0x10], dx
mov word [ebx + 0x12], 0
jmp 0x41dd7e
test byte [ebx], 0x10
je 0x41dcbb
mov dword [ebp - 0x14], esi
fild dword [ebp - 0x14]
fadd qword [ebx + 8]
fstp qword [ebx + 8]
fld qword [ebx + 8]
fcomp qword [0x41dd88]
fnstsw ax
sahf
ja 0x41dca8
fld qword [ebx + 8]
fcomp qword [0x41dd90]
fnstsw ax
sahf
jae 0x41dcae
mov dx, 0x14
jmp 0x41dcb2
mov dx, 0xa
mov word [ebx + 0x10], dx
jmp 0x41dd7e
test byte [ebx], 0x60
je 0x41dcce
and dword [ebx], 0xfffbffff
add dword [ebx + 8], esi
jmp 0x41dd7e
push 0
push ebx
call fcn.0042d7d4
add esp, 8
test eax, eax
je 0x41dd1d
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edi, eax
push esi
call fcn.00423000
pop ecx
push 0
mov eax, dword [edi]
mov edx, dword [eax - 4]
push edx
push ebx
push ebx
push 0
call fcn.0042d818
add esp, 0x14
sub dword [edi], 4
mov ecx, dword [edi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x41dd7e
push eax
call fcn.0043f008
pop ecx
jmp 0x41dd7e
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov edi, eax
push esi
call fcn.00423000
pop ecx
mov eax, dword [edi]
mov edx, dword [eax - 4]
push edx
push ebx
push 2
push 0x5407b3
push 0
push 0x439
push 1
call fcn.00457300
add esp, 0x1c
mov esi, eax
test esi, esi
je 0x41dd7e
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x41dd6d
push eax
call fcn.0043f008
pop ecx
push esi
push ebx
call fcn.0043f284
add esp, 8
push esi
call fcn.0043dbc0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret