Function at 0x5174e0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call ebp
cmp esi, edi
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x34], eax
je 0x517582
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov edi, dword [ebx + 0xc0]
je 0x517534
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x517534
or edx, 0xffffffff
mov ecx, edi
call fcn.004fc390
jmp 0x51753d
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x517559
push eax
push str.Unknown_control_mode:__d
mov eax, 1
call fcn.00516e70
add esp, 8
jmp 0x51756f
mov ecx, dword [esi]
lea eax, [ebx + 0x8c]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebp
mov esi, dword [ebx + 0xf4]
mov dword [esp + 0x20], eax
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
je 0x5175b1
push eax
call edi
test eax, eax
je 0x5175b1
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x5175bc
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push esi
call ebp
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov esi, dword [ebx + 0xdc]
je 0x5175de
push eax
call edi
test eax, eax
je 0x5175de
xor edx, edx
mov ecx, esi
call fcn.004fc390
jmp 0x5175e3
push 0
push esi
call ebp
test eax, eax
jne 0x5177b6
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov esi, dword [ebx + 0xec]
je 0x51760d
push eax
call edi
test eax, eax
je 0x51760d
xor edx, edx
mov ecx, esi
call fcn.004fc390
jmp 0x517612
push 0
push esi
call ebp
test eax, eax
jne 0x5177a9
mov eax, dword [ebx + 0x114]
test eax, eax
je 0x5176d1
lea ebp, [ebx + 0x108]
mov edi, edi
mov eax, dword [ebp + 4]
mov ecx, dword [eax]
xor edx, edx
cmp ecx, edx
mov dword [ebp + 4], ecx
je 0x517643
mov dword [ecx + 4], edx
jmp 0x517646
mov dword [ebp + 8], edx
mov edx, dword [ebp]
mov ebx, dword [eax + 8]
push eax
mov ecx, ebp
call dword [edx + 8]
dec dword [ebp + 0xc]
mov esi, dword [ebx + 4]
mov edi, dword [ebx]
mov byte [ebx + 8], 0
mov al, byte [esi + 0xa0]
test al, al
je 0x5176bf
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x80]
add eax, 0x14
push eax
mov eax, dword [edi + 0x28]
xor edx, edx
dec ecx
div ecx
mov ecx, dword [esi + 0x7c]
dec ecx
xor edx, edx
push eax
mov eax, dword [edi + 0x24]
div ecx
push eax
push str.Unloading_cell__dx_d_from_landscape___s_
mov eax, 3
call fcn.00516e70
mov ecx, dword [esi + 0x80]
mov eax, dword [edi + 0x28]
add esp, 0x10
xor edx, edx
dec ecx
div ecx
mov ecx, dword [esi + 0x7c]
dec ecx
xor edx, edx
mov ebx, eax
mov eax, dword [edi + 0x24]
div ecx
push eax
mov eax, esi
call fcn.00514180
mov ebx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x114]
test eax, eax
jne 0x517630
mov edx, dword [ebx + 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x134]
test eax, eax
je 0x517792
lea edi, [ebx + 0x128]
lea esp, [esp]
mov eax, dword [edi + 4]
mov ecx, dword [eax]
test ecx, ecx
mov dword [edi + 4], ecx
je 0x517715
mov dword [ecx + 4], 0
jmp 0x51771c
mov dword [edi + 8], 0
mov edx, dword [edi]
mov ebp, dword [eax + 8]
push eax
mov ecx, edi
call dword [edx + 8]
mov edx, dword [edi + 0xc]
lea eax, [ebp + 0x14]
push eax
dec edx
push str.Unloading_maps_from_landscape___s_
mov eax, 3
mov dword [edi + 0xc], edx
call fcn.00516e70
mov eax, dword [ebx + 0x13c]
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x51777d
mov ecx, dword [eax + 8]
cmp dword [ecx + 4], ebp
jne 0x517773
mov byte [ecx + 8], 0
lea esi, [ebx + 0x138]
lea ecx, [esp + 0x14]
call fcn.00507ce0
mov eax, dword [esp + 0x14]
jmp 0x517779
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x517752
mov eax, ebp
call fcn.00514050
mov eax, dword [ebx + 0x134]
test eax, eax
jne 0x517700
mov ecx, dword [ebx + 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [esp + 0x1c], eax
mov edx, dword [ebx + 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebx + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [esp + 0x14], 0
mov al, 1
xor ebp, ebp
jmp 0x5177d5
mov al, byte [esp + 0x13]
test al, al
jne 0x51782e
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
je 0x517825
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebp
je 0x517825
mov eax, dword [esi + 0x14]
cmp eax, ebp
je 0x517825
cmp eax, 3
je 0x517825
mov ecx, dword [esi + 0x20]
push 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x51782e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x51782e
mov dword [esi + 0x14], 3
call fcn.004fc230
jmp 0x51782e
push ebp
push 0xa
call dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov edi, dword [ebx + 0xe4]
je 0x51788f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebp
je 0x51788f
mov eax, dword [esi + 0x14]
cmp eax, ebp
mov edx, dword [esi + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
je 0x51788f
cmp eax, 3
je 0x51788f
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x34]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebp
jne 0x517898
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x517898
mov dword [esi + 0x14], 3
call fcn.004fc230
jmp 0x517898
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebx + 0x124], ebp
je 0x5178ef
lea esi, [ebx + 0x118]
mov eax, dword [esi + 4]
mov ecx, dword [eax]
cmp ecx, ebp
mov dword [esi + 4], ecx
je 0x5178b7
mov dword [ecx + 4], ebp
jmp 0x5178ba
mov dword [esi + 8], ebp
mov edx, dword [esi]
mov edi, dword [eax + 8]
push eax
mov ecx, esi
call dword [edx + 8]
dec dword [esi + 0xc]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
add edi, 0x14
push edi
push str.Streaming_maps_from_landscape___s_
mov eax, 3
call fcn.00516e70
mov eax, dword [ebx + 0x124]
add esp, 8
cmp eax, ebp
jne 0x5178a6
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0xe4]
inc esi
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov edi, dword [ebx + 0xc8]
mov byte [esp + 0x13], 0
je 0x517973
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebp
je 0x517973
mov eax, dword [esi + 0x14]
cmp eax, ebp
mov edx, dword [esi + 0x20]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edi
je 0x517973
cmp eax, 3
je 0x517973
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
sub ecx, ebp
je 0x517958
dec ecx
je 0x51796f
jmp 0x51797b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x51796f
mov dword [esi + 0x14], 3
call fcn.004fc230
xor eax, eax
jmp 0x51797b
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebp
jne 0x5177d1
mov esi, dword [esp + 0x3c]
mov ecx, dword [esi + 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, dword [esi + 0xd4]
mov ebx, eax
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], ebx
je 0x5179c7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5179c7
or edx, 0xffffffff
mov ecx, edi
call fcn.004fc390
jmp 0x5179d0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x104]
test eax, eax
je 0x517b3d
mov edi, edi
mov esi, dword [esp + 0x3c]
mov eax, dword [esi + 0xfc]
mov ecx, dword [eax]
add esi, 0xf8
xor edx, edx
cmp ecx, edx
mov dword [esi + 4], ecx
je 0x517a00
mov dword [ecx + 4], edx
jmp 0x517a03
mov dword [esi + 8], edx
mov ebp, dword [eax + 8]
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esp + 0x28], ebp
call dword [edx + 8]
dec dword [esi + 0xc]
mov esi, dword [ebp + 4]
mov al, byte [esi + 0xa0]
test al, al
mov edi, dword [ebp]
jne 0x517a44
add esi, 0x14
push esi
push str.Attempt_to_stream_cell_for_landscape_that_is_not_loaded__landscape_s_
mov eax, 1
call fcn.00516e70
add esp, 8
mov byte [ebp + 8], 0
jmp 0x517b29
mov ecx, dword [esi + 0x7c]
mov eax, dword [edi + 0x24]
xor edx, edx
dec ecx
div ecx
mov ecx, dword [esi + 0x80]
xor edx, edx
dec ecx
mov ebx, eax
mov eax, dword [edi + 0x28]
div ecx
mov edx, dword [edi + 4]
add edx, 0x14
push edx
mov ebp, eax
push ebp
push ebx
push str.Streaming_cell__dx_d_from_landscape___s_
mov eax, 3
call fcn.00516e70
mov eax, dword [esi + 8]
add esp, 0x10
test eax, eax
jne 0x517a8a
mov eax, esi
call fcn.00513d70
mov eax, dword [esi + 8]
mov ecx, dword [eax + ebx*4]
mov dword [ecx + ebp*4], edi
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x20]
push ebp
push ebx
mov eax, esi
call fcn.00514550
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0xf4]
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
je 0x517acf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x517acf
or edx, 0xffffffff
mov ecx, esi
call fcn.004fc390
jmp 0x517ad8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x3c]
mov edx, dword [edi + 0x138]
lea esi, [edi + 0x138]
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov dword [eax], 0
mov edx, dword [esi + 8]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x517b0b
mov dword [ecx], eax
jmp 0x517b0e
mov dword [esi + 4], eax
mov edx, dword [esi + 0xc]
inc edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov eax, dword [edi + 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0x104]
test eax, eax
jne 0x5179e0
mov esi, ecx
mov edx, dword [esi + 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebp, dword [esp + 0x34]
mov esi, eax
mov edi, esi
sub edi, ebp
push edi
push str.FLandscapeStreamController::Update_took__d_ms
mov eax, 2
call fcn.00516e70
add esp, 8
cmp edi, 0x23
jbe 0x517bcf
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov eax, dword [esp + 0x18]
ja 0x517ba4
test eax, eax
ja 0x517ba4
mov eax, dword [esp + 0x20]
sub esi, ebx
push esi
sub ebx, eax
push ebx
sub eax, ebp
push eax
push edi
push str._tLandscape_Update_Breakdown_n_t___________________________n_tTotal_update___d_ms_n_tNotify_time___d_n_tUnload_maps_cells__N_A__foreground_held_the_mutex__n_tStream_maps__d_ms___d_times__n_tStream_cells___d_ms
mov eax, 1
call fcn.00516e70
add esp, 0x14
jmp 0x517bcf
mov edx, dword [esp + 0x14]
sub esi, ebx
push esi
push edx
sub ebx, eax
sub ecx, eax
push ebx
push ecx
mov ecx, dword [esp + 0x30]
sub eax, ecx
push eax
sub ecx, ebp
push ecx
push edi
push str._tLandscape_Update_Breakdown_n_t___________________________n_tTotal_update___d_ms_n_tNotify_time___d_n_tUnload_cells___d_ms_n_tUnload_maps___d_ms_n_tStream_maps___d_ms___d_times__n_tStream_cells___d_ms
mov eax, 1
call fcn.00516e70
add esp, 0x20
mov ecx, dword [esp + 0x3c]
mov dl, byte [ecx + 0xcd]
pop edi
pop esi
xor eax, eax
test dl, dl
pop ebp
sete al
pop ebx
add esp, 0x28
ret 4