Function at 0x43f498
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test ah, 0x20
je 0x43f7d6
test ah, 0x40
je 0x43f4b9
mov ebx, dword [ebx + 8]
jmp 0x43f7d6
test byte [ebx + 2], 1
je 0x43f62f
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x43f7d8
mov edx, dword [ebx + 8]
test byte [edx + 1], 0x20
je 0x43f4e5
mov ecx, dword [ebx + 8]
push ecx
call fcn.0043f7e0
pop ecx
mov esi, eax
jmp 0x43f4e8
mov esi, dword [ebx + 8]
test byte [esi + 1], 0x80
je 0x43f508
mov eax, dword [ebx + 0x10]
push eax
push esi
call fcn.0042a1a0
add esp, 8
mov esi, eax
test esi, esi
je 0x43f557
mov eax, esi
jmp 0x43f7d8
test byte [esi], 4
je 0x43f527
mov edx, dword [ebx + 0x10]
push edx
push esi
call fcn.0043d488
add esp, 8
mov esi, eax
test esi, esi
je 0x43f557
mov eax, esi
jmp 0x43f7d8
test byte [esi + 1], 4
je 0x43f557
mov edi, dword [ebx + 0x10]
test edi, edi
jle 0x43f557
cmp edi, dword [esi + 8]
ja 0x43f557
push 1
mov eax, dword [esi + 0x10]
add eax, edi
dec eax
push eax
push 0
call fcn.0043dce8
add esp, 0xc
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
jmp 0x43f7d8
push 0
call fcn.0043da24
pop ecx
mov dword [ebx + 0xc], eax
call fcn.0042557c
test ax, ax
jne 0x43f622
mov edx, dword [ebx + 0x10]
push edx
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
add dword [eax], 4
mov esi, dword [eax]
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp esi, dword [eax + 4]
jne 0x43f59a
call fcn.00432d24
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 4]
push eax
call fcn.0043e6ec
add esp, 8
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 4]
push eax
mov edx, dword [ebx + 8]
push edx
push 2
push 0x2e
call fcn.0046c000
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00457160
add esp, 0x1c
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
test dword [ecx], 0xb405
je 0x43f622
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
push ecx
call fcn.0043f008
pop ecx
mov eax, dword [ebx + 0xc]
jmp 0x43f7d8
test byte [ebx + 2], 2
je 0x43f643
push ebx
mov edx, dword [ebx + 0xc]
call dword [edx]
pop ecx
mov ebx, eax
jmp 0x43f7d6
mov eax, dword [ebx + 0x10]
test eax, eax
jl 0x43f7c4
cmp dword [ebx + 0xc], 0
jne 0x43f7ab
mov edx, dword [ebx + 8]
cmp eax, dword [edx + 4]
jae 0x43f671
shl eax, 3
mov ecx, dword [edx]
lea eax, [eax + eax*2]
add ecx, eax
mov ebx, ecx
jmp 0x43f7d6
call fcn.0042557c
test ax, ax
jne 0x43f7d6
mov edx, dword [ebx + 8]
push edx
call fcn.00429ae0
pop ecx
mov ecx, dword [ebx + 0x10]
inc ecx
push ecx
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
add dword [eax], 4
mov esi, dword [eax]
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp esi, dword [eax + 4]
jne 0x43f6b3
call fcn.00432d24
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 4]
push eax
call fcn.0043e6ec
add esp, 8
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 4]
push eax
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 8]
push eax
push 2
push 0x2e
call fcn.0046c000
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00457160
add esp, 0x1c
mov edx, dword [0x555894]
push edx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax]
mov edx, dword [eax]
test dword [edx], 0xb405
je 0x43f74b
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax]
mov edx, dword [eax]
push edx
call fcn.0043f008
pop ecx
mov ecx, dword [0x555894]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
test dword [ecx], 0xb405
je 0x43f787
mov eax, dword [0x555894]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
push ecx
call fcn.0043f008
pop ecx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jbe 0x43f7a2
shl edx, 3
mov eax, dword [eax]
lea edx, [edx + edx*2]
add eax, edx
mov ebx, eax
jmp 0x43f7d6
push ebx
call fcn.0043f008
pop ecx
jmp 0x43f7d6
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
shl edx, 2
mov eax, dword [ecx]
mov ecx, dword [ebx + 0x10]
add eax, edx
shl ecx, 2
add eax, ecx
mov ebx, dword [eax]
jmp 0x43f7d6
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 8]
push edx
call fcn.00432530
add esp, 8
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret