Function at 0x41f528
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
mov eax, dword [0x555894]
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 0x41f57c
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 0x41f7c7
push eax
call fcn.0043f008
pop ecx
jmp 0x41f7c7
test dword [esi], 0xfffbffff
jne 0x41f5a6
sub dword [edi], 4
test dword [ebx], 0xb405
je 0x41f596
push ebx
call fcn.0043f008
pop ecx
mov dword [ebx], 0x80
xor edx, edx
mov dword [ebx + 8], edx
jmp 0x41f7c7
test byte [ebx + 1], 4
je 0x41f5f3
test byte [esi + 1], 4
je 0x41f5f3
push 0
push esi
push ebx
call fcn.0043fa58
add esp, 0xc
test eax, eax
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 0x41f5de
push eax
call fcn.0043f008
pop ecx
push ebx
call fcn.0043f008
pop ecx
mov dword [ebx], 0x80
mov dword [ebx + 8], esi
jmp 0x41f7c7
mov ecx, dword [ebx]
test cl, 0xa
je 0x41f646
test byte [esi], 0xa
je 0x41f646
test cl, 2
je 0x41f60a
mov eax, dword [ebx + 8]
cdq
jmp 0x41f610
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push edx
push eax
test byte [esi], 2
je 0x41f61d
mov eax, dword [esi + 8]
cdq
jmp 0x41f623
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
cmp edx, dword [esp + 4]
jne 0x41f62c
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 0x41f7c7
mov ecx, dword [ebx]
test cl, 0x1a
je 0x41f69c
test byte [esi], 0x1a
je 0x41f69c
test cl, 2
je 0x41f65c
fild dword [ebx + 8]
jmp 0x41f669
test byte [ebx], 8
je 0x41f666
fild qword [ebx + 8]
jmp 0x41f669
fld qword [ebx + 8]
test byte [esi], 2
je 0x41f673
fild dword [esi + 8]
jmp 0x41f680
test byte [esi], 8
je 0x41f67d
fild qword [esi + 8]
jmp 0x41f680
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 0x41f7c7
test byte [ebx], 0x60
je 0x41f6eb
test byte [esi], 0x60
je 0x41f6eb
test byte [ebx], 0x40
je 0x41f6ce
test byte [esi], 0x40
je 0x41f6ce
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
jne 0x41f6c0
mov edx, dword [ebx + 0xc]
cmp edx, dword [esi + 0xc]
je 0x41f6c4
xor ecx, ecx
jmp 0x41f6c9
mov ecx, 1
mov dword [ebx + 8], ecx
jmp 0x41f6dd
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
sete dl
and edx, 1
mov dword [ebx + 8], edx
mov dword [ebx], 0x80
sub dword [edi], 4
jmp 0x41f7c7
test byte [ebx], 0x80
je 0x41f715
test byte [esi], 0x80
je 0x41f715
cmp dword [ebx + 8], 0
je 0x41f700
mov ecx, dword [esi + 8]
jmp 0x41f70a
mov ecx, dword [esi + 8]
cmp ecx, 1
sbb ecx, ecx
neg ecx
mov dword [ebx + 8], ecx
sub dword [edi], 4
jmp 0x41f7c7
test byte [ebx], 1
je 0x41f755
test byte [esi], 1
je 0x41f755
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
sete dl
sub dword [edi], 4
and edx, 1
mov eax, dword [edi]
mov esi, edx
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x41f743
push eax
call fcn.0043f008
pop ecx
push ebx
call fcn.0043f008
pop ecx
mov dword [ebx], 0x80
mov dword [ebx + 8], esi
jmp 0x41f7c7
push 0
push esi
push ebx
push ebx
push 8
call fcn.0042d818
add esp, 0x14
test eax, eax
je 0x41f780
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x41f7c7
push eax
call fcn.0043f008
pop ecx
jmp 0x41f7c7
push esi
push ebx
push 2
push 0x5407d5
push 0
push 0x42f
push 1
call fcn.00457300
add esp, 0x1c
mov esi, eax
test esi, esi
je 0x41f7c7
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x41f7b6
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
ret