Function at 0x41f584
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
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 0x41f5d8
mov dword [ebx], 0x80
test dword [esi], 0xfffbffff
setne 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 0x41f825
push eax
call fcn.0043edc0
pop ecx
jmp 0x41f825
test dword [esi], 0xfffbffff
jne 0x41f604
sub dword [edi], 4
test dword [ebx], 0xb405
je 0x41f5f2
push ebx
call fcn.0043edc0
pop ecx
mov dword [ebx], 0x80
mov dword [ebx + 8], 1
jmp 0x41f825
test byte [ebx + 1], 4
je 0x41f651
test byte [esi + 1], 4
je 0x41f651
push 0
push esi
push ebx
call fcn.0043f810
sub dword [edi], 4
mov esi, eax
mov edx, dword [edi]
add esp, 0xc
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x41f634
push eax
call fcn.0043edc0
pop ecx
push ebx
call fcn.0043edc0
test esi, esi
pop ecx
setne dl
and edx, 1
mov dword [ebx], 0x80
mov dword [ebx + 8], edx
jmp 0x41f825
mov ecx, dword [ebx]
test cl, 0xa
je 0x41f6a4
test byte [esi], 0xa
je 0x41f6a4
test cl, 2
je 0x41f668
mov eax, dword [ebx + 8]
cdq
jmp 0x41f66e
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
push edx
push eax
test byte [esi], 2
je 0x41f67b
mov eax, dword [esi + 8]
cdq
jmp 0x41f681
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
cmp edx, dword [esp + 4]
jne 0x41f68a
cmp eax, dword [esp]
setne cl
and ecx, 1
add esp, 8
mov dword [ebx + 8], ecx
mov dword [ebx], 0x80
sub dword [edi], 4
jmp 0x41f825
mov ecx, dword [ebx]
test cl, 0x1a
je 0x41f6fa
test byte [esi], 0x1a
je 0x41f6fa
test cl, 2
je 0x41f6ba
fild dword [ebx + 8]
jmp 0x41f6c7
test byte [ebx], 8
je 0x41f6c4
fild qword [ebx + 8]
jmp 0x41f6c7
fld qword [ebx + 8]
test byte [esi], 2
je 0x41f6d1
fild dword [esi + 8]
jmp 0x41f6de
test byte [esi], 8
je 0x41f6db
fild qword [esi + 8]
jmp 0x41f6de
fld qword [esi + 8]
fcompp
fnstsw ax
sahf
setne dl
and edx, 1
mov dword [ebx + 8], edx
mov dword [ebx], 0x80
sub dword [edi], 4
jmp 0x41f825
test byte [ebx], 0x60
je 0x41f749
test byte [esi], 0x60
je 0x41f749
test byte [ebx], 0x40
je 0x41f72c
test byte [esi], 0x40
je 0x41f72c
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
jne 0x41f722
mov edx, dword [ebx + 0xc]
cmp edx, dword [esi + 0xc]
jne 0x41f722
xor ecx, ecx
jmp 0x41f727
mov ecx, 1
mov dword [ebx + 8], ecx
jmp 0x41f73b
mov eax, dword [ebx + 8]
cmp eax, dword [esi + 8]
setne dl
and edx, 1
mov dword [ebx + 8], edx
mov dword [ebx], 0x80
sub dword [edi], 4
jmp 0x41f825
test byte [ebx], 0x80
je 0x41f773
test byte [esi], 0x80
je 0x41f773
cmp dword [ebx + 8], 0
je 0x41f765
mov ecx, dword [esi + 8]
cmp ecx, 1
sbb eax, eax
neg eax
jmp 0x41f768
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
sub dword [edi], 4
jmp 0x41f825
test byte [ebx], 1
je 0x41f7b3
test byte [esi], 1
je 0x41f7b3
mov edx, dword [ebx + 8]
cmp edx, dword [esi + 8]
setne cl
sub dword [edi], 4
and ecx, 1
mov eax, dword [edi]
mov esi, ecx
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x41f7a1
push eax
call fcn.0043edc0
pop ecx
push ebx
call fcn.0043edc0
pop ecx
mov dword [ebx], 0x80
mov dword [ebx + 8], esi
jmp 0x41f825
push 0
push esi
push ebx
push ebx
push 0xa
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x41f7de
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x41f825
push eax
call fcn.0043edc0
pop ecx
jmp 0x41f825
push esi
push ebx
push 2
push 0x538693
push 0
push 0x430
push 1
call fcn.004570b8
add esp, 0x1c
mov esi, eax
test esi, esi
je 0x41f825
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x41f814
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
ret