Function at 0x420ef0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
push edi
push ebp
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 byte [ebx], 4
je 0x420fa4
test dword [esi], 0x47b
je 0x420fa4
push 1
push esi
push ebx
call fcn.0043caf8
add esp, 0xc
test eax, eax
je 0x420f4a
push eax
push esi
call fcn.0043ee8c
add esp, 8
push esi
push ebx
call fcn.0043f03c
add esp, 8
sub dword [edi], 4
jmp 0x421183
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x420f7c
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x421183
push eax
call fcn.0043edc0
pop ecx
jmp 0x421183
push esi
push ebx
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00456f18
add esp, 0x1c
jmp 0x421183
mov eax, dword [esi]
test al, 2
je 0x420fb2
mov ebp, dword [esi + 8]
jmp 0x421059
test al, 8
je 0x420fc0
mov eax, dword [esi + 8]
mov ebp, eax
jmp 0x421059
test al, 0x10
je 0x420fd3
fld qword [esi + 8]
call fcn.004afaa8
mov ebp, eax
jmp 0x421059
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x421005
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x421183
push eax
call fcn.0043edc0
pop ecx
jmp 0x421183
push esi
push ebx
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x42c
push 1
call fcn.004570b8
add esp, 0x1c
mov esi, eax
test esi, esi
je 0x421183
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421043
push eax
call fcn.0043edc0
pop ecx
push esi
push ebx
call fcn.0043f03c
add esp, 8
push esi
call fcn.0043d978
pop ecx
jmp 0x421183
test byte [ebx + 1], 0x80
je 0x42113a
test byte [ebx + 1], 0x80
je 0x4210a5
mov edx, dword [ebx + 8]
cmp word [edx + 0xc], 0
je 0x4210a5
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x4210a5
sub dword [edi], 4
mov ecx, dword [edi]
mov eax, dword [ecx]
test dword [eax], 0xb405
je 0x421183
push eax
call fcn.0043edc0
pop ecx
jmp 0x421183
test ebp, ebp
jbe 0x4210df
mov edx, dword [ebx + 8]
cmp ebp, dword [edx + 4]
ja 0x4210df
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.0043ee8c
add esp, 8
push esi
push ebx
call fcn.0043f03c
add esp, 8
sub dword [edi], 4
jmp 0x421183
test byte [ebx + 1], 0x80
je 0x4210ef
mov ecx, dword [ebx + 8]
cmp word [ecx + 0xc], 0
jne 0x42111a
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x42111a
sub dword [edi], 4
mov eax, dword [edi]
mov eax, dword [eax]
test dword [eax], 0xb405
je 0x421183
push eax
call fcn.0043edc0
pop ecx
jmp 0x421183
push esi
push ebx
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00456f18
add esp, 0x1c
jmp 0x421183
push 0
push esi
push ebx
push ebx
push 0x15
call fcn.0042d5d0
add esp, 0x14
test eax, eax
je 0x421165
sub dword [edi], 4
mov edx, dword [edi]
mov eax, dword [edx]
test dword [eax], 0xb405
je 0x421183
push eax
call fcn.0043edc0
pop ecx
jmp 0x421183
push esi
push ebx
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x42c
push 1
call fcn.00456f18
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret