Function at 0x421138
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push ebp
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 byte [ebx], 4
je 0x4211ec
test dword [esi], 0x47b
je 0x4211ec
push 1
push esi
push ebx
call fcn.0043cd40
add esp, 0xc
test eax, eax
je 0x421192
push eax
push esi
call fcn.0043f0d4
add esp, 8
push esi
push ebx
call fcn.0043f284
add esp, 8
sub dword [edi], 4
jmp 0x4213cb
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d818
add esp, 0x14
test eax, eax
je 0x4211c4
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x4213cb
push eax
call fcn.0043f008
pop ecx
jmp 0x4213cb
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 0x4213cb
mov eax, dword [esi]
test al, 2
je 0x4211fa
mov ebp, dword [esi + 8]
jmp 0x4212a1
test al, 8
je 0x421208
mov eax, dword [esi + 8]
mov ebp, eax
jmp 0x4212a1
test al, 0x10
je 0x42121b
fld qword [esi + 8]
call fcn.004afcf0
mov ebp, eax
jmp 0x4212a1
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d818
add esp, 0x14
test eax, eax
je 0x42124d
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x4213cb
push eax
call fcn.0043f008
pop ecx
jmp 0x4213cb
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 esi, eax
test esi, esi
je 0x4213cb
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x42128b
push eax
call fcn.0043f008
pop ecx
push esi
push ebx
call fcn.0043f284
add esp, 8
push esi
call fcn.0043dbc0
pop ecx
jmp 0x4213cb
test byte [ebx + 1], 0x80
je 0x421382
test byte [ebx + 1], 0x80
je 0x4212ed
mov edx, dword [ebx + 8]
cmp word [edx + 0xc], 0
je 0x4212ed
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d818
add esp, 0x14
test eax, eax
je 0x4212ed
sub dword [edi], 4
mov ecx, dword [edi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x4213cb
push eax
call fcn.0043f008
pop ecx
jmp 0x4213cb
test ebp, ebp
jbe 0x421327
mov edx, dword [ebx + 8]
cmp ebp, dword [edx + 4]
ja 0x421327
mov edx, ebp
mov ecx, dword [ebx + 8]
shl edx, 3
mov eax, dword [ecx]
lea edx, [edx + edx*2]
add eax, edx
add eax, 0xffffffe8
push eax
push esi
call fcn.0043f0d4
add esp, 8
push esi
push ebx
call fcn.0043f284
add esp, 8
sub dword [edi], 4
jmp 0x4213cb
test byte [ebx + 1], 0x80
je 0x421337
mov ecx, dword [ebx + 8]
cmp word [ecx + 0xc], 0
jne 0x421362
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d818
add esp, 0x14
test eax, eax
je 0x421362
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x4213cb
push eax
call fcn.0043f008
pop ecx
jmp 0x4213cb
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 0x4213cb
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d818
add esp, 0x14
test eax, eax
je 0x4213ad
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x4213cb
push eax
call fcn.0043f008
pop ecx
jmp 0x4213cb
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 ebp
pop edi
pop esi
pop ebx
ret