Function at 0x43f250
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 0x43f58e
test ah, 0x40
je 0x43f271
mov ebx, dword [ebx + 8]
jmp 0x43f58e
test byte [ebx + 2], 1
je 0x43f3e7
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x43f590
mov edx, dword [ebx + 8]
test byte [edx + 1], 0x20
je 0x43f29d
mov ecx, dword [ebx + 8]
push ecx
call fcn.0043f598
pop ecx
mov esi, eax
jmp 0x43f2a0
mov esi, dword [ebx + 8]
test byte [esi + 1], 0x80
je 0x43f2c0
mov eax, dword [ebx + 0x10]
push eax
push esi
call fcn.00429f58
add esp, 8
mov esi, eax
test esi, esi
je 0x43f30f
mov eax, esi
jmp 0x43f590
test byte [esi], 4
je 0x43f2df
mov edx, dword [ebx + 0x10]
push edx
push esi
call fcn.0043d240
add esp, 8
mov esi, eax
test esi, esi
je 0x43f30f
mov eax, esi
jmp 0x43f590
test byte [esi + 1], 4
je 0x43f30f
mov edi, dword [ebx + 0x10]
test edi, edi
jle 0x43f30f
cmp edi, dword [esi + 8]
ja 0x43f30f
push 1
mov eax, dword [esi + 0x10]
add eax, edi
dec eax
push eax
push 0
call fcn.0043daa0
add esp, 0xc
mov dword [ebx + 0xc], eax
mov eax, dword [ebx + 0xc]
jmp 0x43f590
push 0
call fcn.0043d7dc
pop ecx
mov dword [ebx + 0xc], eax
call fcn.00425334
test ax, ax
jne 0x43f3da
mov edx, dword [ebx + 0x10]
push edx
mov ecx, dword [0x54d750]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
add dword [eax], 4
mov esi, dword [eax]
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp esi, dword [eax + 4]
jne 0x43f352
call fcn.00432adc
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 4]
push eax
call fcn.0043e4a4
add esp, 8
mov edx, dword [0x54d750]
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.0046bdb8
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00456f18
add esp, 0x1c
mov ecx, dword [0x54d750]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
test dword [ecx], 0xb405
je 0x43f3da
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
push ecx
call fcn.0043edc0
pop ecx
mov eax, dword [ebx + 0xc]
jmp 0x43f590
test byte [ebx + 2], 2
je 0x43f3fb
push ebx
mov edx, dword [ebx + 0xc]
call dword [edx]
pop ecx
mov ebx, eax
jmp 0x43f58e
mov eax, dword [ebx + 0x10]
test eax, eax
jl 0x43f57c
cmp dword [ebx + 0xc], 0
jne 0x43f563
mov edx, dword [ebx + 8]
cmp eax, dword [edx + 4]
jae 0x43f429
shl eax, 3
mov ecx, dword [edx]
lea eax, [eax + eax*2]
add ecx, eax
mov ebx, ecx
jmp 0x43f58e
call fcn.00425334
test ax, ax
jne 0x43f58e
mov edx, dword [ebx + 8]
push edx
call fcn.00429898
pop ecx
mov ecx, dword [ebx + 0x10]
inc ecx
push ecx
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
add dword [eax], 4
mov esi, dword [eax]
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp esi, dword [eax + 4]
jne 0x43f46b
call fcn.00432adc
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 4]
push eax
call fcn.0043e4a4
add esp, 8
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 4]
push eax
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
mov ecx, dword [eax]
mov eax, dword [ecx - 8]
push eax
push 2
push 0x2e
call fcn.0046bdb8
pop ecx
push eax
push 0
push 0x46c
push 2
call fcn.00456f18
add esp, 0x1c
mov edx, dword [0x54d750]
push edx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov ecx, dword [0x54d750]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax]
mov edx, dword [eax]
test dword [edx], 0xb405
je 0x43f503
mov ecx, dword [0x54d750]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
mov eax, dword [eax]
mov edx, dword [eax]
push edx
call fcn.0043edc0
pop ecx
mov ecx, dword [0x54d750]
push ecx
call sub.KERNEL32.DLL_TlsGetValue
sub dword [eax], 4
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
test dword [ecx], 0xb405
je 0x43f53f
mov eax, dword [0x54d750]
push eax
call sub.KERNEL32.DLL_TlsGetValue
mov edx, dword [eax]
mov ecx, dword [edx]
push ecx
call fcn.0043edc0
pop ecx
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 0x10]
cmp ecx, edx
jbe 0x43f55a
shl edx, 3
mov eax, dword [eax]
lea edx, [edx + edx*2]
add eax, edx
mov ebx, eax
jmp 0x43f58e
push ebx
call fcn.0043edc0
pop ecx
jmp 0x43f58e
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 0x43f58e
mov eax, dword [ebx + 0x10]
push eax
mov edx, dword [ebx + 8]
push edx
call fcn.004322e8
add esp, 8
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret