Function at 0x4213d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax - 4]
mov ebp, dword [eax - 8]
test byte [ebp + 1], 0x20
je 0x4213fb
push ebp
call fcn.0043f7e0
pop ecx
mov ebx, eax
jmp 0x4213fd
mov ebx, ebp
test byte [ebx], 4
je 0x42149d
test dword [esi], 0x47b
je 0x42149d
push esi
push ebx
call fcn.0043cf20
add esp, 8
test eax, eax
je 0x42143c
push eax
push esi
call fcn.0043f0d4
add esp, 8
push esi
push ebp
call fcn.0043f284
add esp, 8
sub dword [edi], 4
jmp 0x42168b
push 0x15
push ebx
call fcn.0042d7d4
add esp, 8
test eax, eax
je 0x421475
push esi
push ebx
push ebp
call fcn.00425390
add esp, 0xc
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x42168b
push eax
call fcn.0043f008
pop ecx
jmp 0x42168b
push esi
push ebx
push 2
push 0x2e
call fcn.0046c000
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00457160
add esp, 0x1c
jmp 0x42168b
mov eax, dword [esi]
test al, 2
je 0x4214ae
mov edx, dword [esi + 8]
mov dword [esp], edx
jmp 0x42155e
test al, 8
je 0x4214bd
mov eax, dword [esi + 8]
mov dword [esp], eax
jmp 0x42155e
test al, 0x10
je 0x4214d1
fld qword [esi + 8]
call fcn.004afcf0
mov dword [esp], eax
jmp 0x42155e
push 0x15
push ebx
call fcn.0042d7d4
add esp, 8
test eax, eax
je 0x42150a
push esi
push ebx
push ebp
call fcn.00425390
add esp, 0xc
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x42168b
push eax
call fcn.0043f008
pop ecx
jmp 0x42168b
push esi
push ebx
push 2
push 0x2e
call fcn.0046c000
pop ecx
push eax
push 0
push 0x42c
push 1
call fcn.00457300
add esp, 0x1c
mov ebx, eax
test ebx, ebx
je 0x42168b
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421548
push eax
call fcn.0043f008
pop ecx
push ebx
push ebp
call fcn.0043f284
add esp, 8
push ebx
call fcn.0043dbc0
pop ecx
jmp 0x42168b
test byte [ebx + 1], 0x80
je 0x42163b
test byte [ebx + 1], 0x80
je 0x4215b1
mov edx, dword [ebx + 8]
cmp word [edx + 0xc], 0
je 0x4215b1
push 0x15
push ebx
call fcn.0042d7d4
add esp, 8
test eax, eax
je 0x4215b1
push esi
push ebx
push ebp
call fcn.00425390
add esp, 0xc
sub dword [edi], 4
mov ecx, dword [edi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x42168b
push eax
call fcn.0043f008
pop ecx
jmp 0x42168b
cmp dword [esp], 0
jbe 0x4215d9
mov edx, dword [ebx + 8]
mov ecx, dword [edx + 4]
cmp ecx, dword [esp]
jb 0x4215d9
push ebp
mov eax, dword [esp + 4]
push eax
push ebx
call fcn.0042a128
add esp, 0xc
sub dword [edi], 4
jmp 0x42168b
test byte [ebx + 1], 0x80
je 0x4215e9
mov edx, dword [ebx + 8]
cmp word [edx + 0xc], 0
jne 0x42161b
push 0x15
push ebx
call fcn.0042d7d4
add esp, 8
test eax, eax
je 0x42161b
push esi
push ebx
push ebp
call fcn.00425390
add esp, 0xc
sub dword [edi], 4
mov ecx, dword [edi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x42168b
push eax
call fcn.0043f008
pop ecx
jmp 0x42168b
push esi
push ebx
push 2
push 0x2e
call fcn.0046c000
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00457160
add esp, 0x1c
jmp 0x42168b
push 0x15
push ebx
call fcn.0042d7d4
add esp, 8
test eax, eax
je 0x42166d
push esi
push ebx
push ebp
call fcn.00425390
add esp, 0xc
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x42168b
push eax
call fcn.0043f008
pop ecx
jmp 0x42168b
push esi
push ebx
push 2
push 0x2e
call fcn.0046c000
pop ecx
push eax
push 0
push 0x42c
push 1
call fcn.00457160
add esp, 0x1c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret