Function at 0x5193b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x728c28]
sub esp, 0x10
cmp eax, 0xffffffff
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [ebx + 0x38]
je 0x5193e0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebp, ebp
cmp eax, ebp
je 0x5193e2
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x5193eb
xor ebp, ebp
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebx + 0x16c], ebp
je 0x5196a2
mov eax, dword [ebx + 0x164]
mov ecx, dword [eax]
cmp ecx, ebp
lea esi, [ebx + 0x160]
mov dword [esi + 4], ecx
je 0x519411
mov dword [ecx + 4], ebp
jmp 0x519414
mov dword [esi + 8], ebp
mov edx, dword [esi]
push edi
mov edi, dword [eax + 8]
push eax
mov ecx, esi
call dword [edx + 8]
dec dword [esi + 0xc]
mov eax, dword [ebx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov ecx, dword [edi + 0x20]
mov esi, dword [ecx + 0x38]
je 0x519454
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, ebp
je 0x519454
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x51945d
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [edi + 0xc], ebp
je 0x519689
jmp 0x519470
mov ebx, dword [esp + 0x24]
xor ebp, ebp
mov edi, edi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
cmp ecx, ebp
mov dword [edi + 4], ecx
je 0x519481
mov dword [ecx + 4], ebp
jmp 0x519484
mov dword [edi + 8], ebp
mov esi, dword [eax + 8]
mov edx, dword [edi]
push eax
mov ecx, edi
mov dword [esp + 0x14], esi
call dword [edx + 8]
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 0x20]
dec edx
mov dword [edi + 0xc], edx
mov ecx, dword [eax + 0x3c]
mov al, byte [ecx + 0xa0]
mov ebp, esi
shr ebp, 0x10
test al, al
jne 0x5195ad
jmp 0x5194c0
mov ebx, dword [esp + 0x24]
lea esp, [esp]
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call fcn.005191e0
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
je 0x51951f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x51951f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51951f
cmp eax, 3
je 0x51951f
mov ecx, dword [esi + 0x20]
push 0x1e
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x519529
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x519529
mov dword [esi + 0x14], 3
call fcn.004fc230
jmp 0x519529
push 0
push 0x1e
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov edx, dword [edi + 0x20]
mov ebx, dword [edx + 0x38]
je 0x51958c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x51958c
mov eax, dword [esi + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
test eax, eax
mov dword [esp + 0x1c], ebx
je 0x51958c
cmp eax, 3
je 0x51958c
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
jne 0x519595
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x519595
mov dword [esi + 0x14], 3
call fcn.004fc230
jmp 0x519595
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x3c]
mov cl, byte [eax + 0xa0]
test cl, cl
je 0x5194b5
mov esi, dword [esp + 0x10]
mov ecx, dword [edi + 0x20]
movzx ebp, bp
movzx ebx, si
mov esi, dword [ecx + 0x3c]
push ebp
call fcn.00514270
mov edx, dword [edi + 0x20]
mov esi, eax
mov eax, dword [edx + 0x3c]
push ebx
add eax, 0x14
push ebp
push eax
push str.Landscape___s__cell___dx_d__loaded__waiting_for_aquisition
mov eax, 3
mov dword [esp + 0x24], esi
call fcn.00516e70
mov ebx, dword [esp + 0x20]
add esp, 0x10
push esi
lea esi, [edi + 0x10]
call fcn.005197c0
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov ebp, dword [esp + 0x24]
mov esi, dword [ebp + 0xd4]
je 0x51961b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51961b
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x519624
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, ebp
call fcn.005196c0
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx + 0x3c]
mov ebx, eax
mov eax, dword [esp + 0x14]
lea esi, [ebp + 0xf8]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x519664
mov dword [ecx + 4], eax
jmp 0x519667
mov dword [esi + 8], eax
mov edx, dword [esi + 0xc]
inc edx
mov dword [esi + 4], eax
mov dword [esi + 0xc], edx
mov edx, dword [ebp + 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x519468
mov eax, dword [edi + 0x20]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 4
mov edx, dword [ebx + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 4