Function at 0x41efac
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push ebp
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax - 4]
mov ebx, dword [eax - 8]
test dword [ebx], 0xfffbffff
jne 0x41f001
mov dword [ebx], 0x80
test dword [esi], 0xfffbffff
sete al
and eax, 1
mov dword [ebx + 8], eax
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x41f2da
push eax
call fcn.0043edc0
pop ecx
jmp 0x41f2da
test dword [esi], 0xfffbffff
jne 0x41f02b
sub dword [edi], 4
test dword [ebx], 0xb405
je 0x41f01b
push ebx
call fcn.0043edc0
pop ecx
mov dword [ebx], 0x80
xor edx, edx
mov dword [ebx + 8], edx
jmp 0x41f2da
test byte [ebx + 1], 4
je 0x41f08a
test byte [esi + 1], 4
je 0x41f08a
mov ebp, dword [ebx + 8]
cmp ebp, dword [esi + 8]
jne 0x41f054
push ebp
mov eax, dword [esi + 0x10]
push eax
mov edx, dword [ebx + 0x10]
push edx
call fcn.004ab718
add esp, 0xc
test eax, eax
je 0x41f058
xor ecx, ecx
jmp 0x41f05d
mov ecx, 1
mov esi, ecx
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x41f075
push eax
call fcn.0043edc0
pop ecx
push ebx
call fcn.0043edc0
pop ecx
mov dword [ebx], 0x80
mov dword [ebx + 8], esi
jmp 0x41f2da
mov ecx, dword [ebx]
test cl, 0xa
je 0x41f0dd
test byte [esi], 0xa
je 0x41f0dd
test cl, 2
je 0x41f0a1
mov eax, dword [ebx + 8]
cdq
jmp 0x41f0a7
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push edx
push eax
test byte [esi], 2
je 0x41f0b4
mov eax, dword [esi + 8]
cdq
jmp 0x41f0ba
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
cmp edx, dword [esp + 4]
jne 0x41f0c3
cmp eax, dword [esp]
sete cl
and ecx, 1
add esp, 8
mov dword [ebx + 8], ecx
mov dword [ebx], 0x80
sub dword [edi], 4
jmp 0x41f2da
mov ecx, dword [ebx]
test cl, 0x1a
je 0x41f133
test byte [esi], 0x1a
je 0x41f133
test cl, 2
je 0x41f0f3
fild dword [ebx + 8]
jmp 0x41f100
test byte [ebx], 8
je 0x41f0fd
fild qword [ebx + 8]
jmp 0x41f100
fld qword [ebx + 8]
test byte [esi], 2
je 0x41f10a
fild dword [esi + 8]
jmp 0x41f117
test byte [esi], 8
je 0x41f114
fild qword [esi + 8]
jmp 0x41f117
fld qword [esi + 8]
fcompp
fnstsw ax
sahf
sete dl
and edx, 1
mov dword [ebx + 8], edx
mov dword [ebx], 0x80
sub dword [edi], 4
jmp 0x41f2da
test byte [ebx], 0x60
je 0x41f167
test byte [esi], 0x60
je 0x41f167
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
jne 0x41f14d
mov edx, dword [ebx + 0xc]
cmp edx, dword [esi + 0xc]
je 0x41f151
xor ecx, ecx
jmp 0x41f156
mov ecx, 1
mov dword [ebx + 8], ecx
mov dword [ebx], 0x80
sub dword [edi], 4
jmp 0x41f2da
test byte [ebx], 0x80
je 0x41f191
test byte [esi], 0x80
je 0x41f191
cmp dword [ebx + 8], 0
je 0x41f17c
mov eax, dword [esi + 8]
jmp 0x41f186
mov eax, dword [esi + 8]
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebx + 8], eax
sub dword [edi], 4
jmp 0x41f2da
test byte [ebx], 1
je 0x41f1d4
test byte [esi], 1
je 0x41f1d4
mov edx, dword [ebx + 8]
cmp edx, dword [esi + 8]
sete cl
sub dword [edi], 4
and ecx, 1
mov eax, dword [edi]
mov esi, ecx
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x41f1bf
push eax
call fcn.0043edc0
pop ecx
push ebx
call fcn.0043edc0
pop ecx
mov dword [ebx], 0x80
mov dword [ebx + 8], esi
jmp 0x41f2da
test byte [ebx], 4
je 0x41f217
test byte [esi], 4
je 0x41f217
mov edx, dword [ebx + 8]
cmp edx, dword [esi + 8]
sete cl
sub dword [edi], 4
and ecx, 1
mov eax, dword [edi]
mov esi, ecx
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x41f202
push eax
call fcn.0043edc0
pop ecx
push ebx
call fcn.0043edc0
pop ecx
mov dword [ebx], 0x80
mov dword [ebx + 8], esi
jmp 0x41f2da
test byte [ebx + 1], 0x80
je 0x41f268
test byte [esi + 1], 0x80
je 0x41f268
push 9
push ebx
call fcn.0042d58c
add esp, 8
test eax, eax
jne 0x41f268
mov edx, dword [ebx + 8]
cmp edx, dword [esi + 8]
sete cl
sub dword [edi], 4
and ecx, 1
mov eax, dword [edi]
mov esi, ecx
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x41f256
push eax
call fcn.0043edc0
pop ecx
push ebx
call fcn.0043edc0
pop ecx
mov dword [ebx], 0x80
mov dword [ebx + 8], esi
jmp 0x41f2da
push 0
push esi
push ebx
push ebx
push 9
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x41f293
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x41f2da
push eax
call fcn.0043edc0
pop ecx
jmp 0x41f2da
push esi
push ebx
push 2
push 0x538690
push 0
push 0x42e
push 1
call fcn.004570b8
add esp, 0x1c
mov esi, eax
test esi, esi
je 0x41f2da
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x41f2c9
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 ebp
pop edi
pop esi
pop ebx
ret