Function at 0x42144c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov ebx, eax
mov eax, dword [ebx]
mov ebp, dword [eax - 0xc]
mov esi, dword [eax - 8]
mov edi, dword [eax - 4]
test byte [esi + 1], 0x20
je 0x421478
push esi
call fcn.0043f598
pop ecx
mov esi, eax
test byte [esi], 4
je 0x421568
test dword [edi], 0x47b
je 0x421568
push 2
push edi
push esi
call fcn.0043caf8
add esp, 0xc
test eax, eax
je 0x4214e2
and dword [ebp], 0xfffbf7ff
push ebp
push eax
call fcn.0043f1cc
add esp, 8
sub dword [ebx], 4
mov eax, dword [ebx]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x4214c4
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4214da
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
jmp 0x4217f8
push ebp
push edi
push esi
push esi
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x42153f
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x42150a
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421520
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4217f8
push eax
call fcn.0043edc0
pop ecx
jmp 0x4217f8
push ebp
push edi
push esi
push 3
push 0x2f
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x46d
push 2
call fcn.00456f18
add esp, 0x20
jmp 0x4217f8
mov eax, dword [edi]
test al, 2
je 0x421579
mov edx, dword [edi + 8]
mov dword [esp], edx
jmp 0x421618
test al, 8
je 0x421588
mov eax, dword [edi + 8]
mov dword [esp], eax
jmp 0x421618
test al, 0x10
je 0x421599
fld qword [edi + 8]
call fcn.004afaa8
mov dword [esp], eax
jmp 0x421618
push ebp
push edi
push esi
push esi
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x4215f6
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4215c1
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4215d7
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4217f8
push eax
call fcn.0043edc0
pop ecx
jmp 0x4217f8
push edi
push 1
push 0x2f
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x42d
push 1
call fcn.00456f18
add esp, 0x18
jmp 0x4217f8
test byte [esi + 1], 0x80
je 0x421785
test byte [esi + 1], 0x80
je 0x42168f
mov edx, dword [esi + 8]
cmp word [edx + 0xc], 0
je 0x42168f
push ebp
push edi
push esi
push esi
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x42168f
sub dword [ebx], 4
mov ecx, dword [ebx]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x42165a
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421670
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4217f8
push eax
call fcn.0043edc0
pop ecx
jmp 0x4217f8
cmp dword [esp], 0
jbe 0x4216f9
mov edx, dword [esi + 8]
mov ecx, dword [edx + 4]
cmp ecx, dword [esp]
jb 0x4216f9
and dword [ebp], 0xfffbf7ff
push ebp
mov ecx, dword [esp + 4]
mov eax, dword [esi + 8]
shl ecx, 3
mov edx, dword [eax]
lea ecx, [ecx + ecx*2]
add edx, ecx
add edx, 0xffffffe8
push edx
call fcn.0043f08c
add esp, 8
sub dword [ebx], 4
mov eax, dword [ebx]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x4216db
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4216f1
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
jmp 0x4217f8
test byte [esi + 1], 0x80
je 0x421709
mov edx, dword [esi + 8]
cmp word [edx + 0xc], 0
jne 0x421766
push ebp
push edi
push esi
push esi
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x421766
sub dword [ebx], 4
mov ecx, dword [ebx]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x421731
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421747
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4217f8
push eax
call fcn.0043edc0
pop ecx
jmp 0x4217f8
push edi
push 1
push 0x2f
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x46d
push 2
call fcn.00456f18
add esp, 0x18
jmp 0x4217f8
push ebp
push edi
push esi
push esi
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x4217db
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4217ad
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4217c3
push eax
call fcn.0043edc0
pop ecx
sub dword [ebx], 4
mov edx, dword [ebx]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4217f8
push eax
call fcn.0043edc0
pop ecx
jmp 0x4217f8
push edi
push 1
push 0x2f
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x42d
push 1
call fcn.00456f18
add esp, 0x18
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret