Function at 0x5985d0
Capabilities:
Execute anti-debugging instructions
Get thread local storage value

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push dword [0x884c50]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, ecx
mov dword [esp + 0x14], ebp
call edi
mov ecx, eax
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 0xc]
jae 0x598615
mov dword [esi], str.LthkbBehaviorGraph::preGenerate
mov dword [esi + 0xc], str.Stbegin
rdtsc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
mov dword [ecx + 4], eax
cmp byte [esp + 0x30], 0
je 0x598692
push dword [0x884c50]
call edi
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 0xc]
jae 0x598647
mov dword [esi], str.StCopyVariablesToMembers
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x2c]
mov ecx, ebp
push 0
push dword [ebx + 0x2c]
call fcn.0059af60
push dword [0x884c50]
call edi
mov ebp, eax
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 0xc]
jae 0x598682
mov dword [esi], str.StUpdateActiveNodes
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebp + 4], eax
mov ecx, dword [esp + 0x10]
push 0
push dword [ebx + 0x2c]
call fcn.005f1b90
jmp 0x598696
mov ebx, dword [esp + 0x2c]
push dword [0x884c50]
call edi
mov ebp, eax
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 0xc]
jae 0x5986c1
mov dword [esi], str.StInitializeAttributes
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x50]
test edx, edx
je 0x598707
mov ebp, dword [edx + 0xc]
test ebp, ebp
jle 0x598707
mov esi, dword [ebx + 0x30]
mov eax, dword [esi]
cmp dword [eax + 4], 0xa
jle 0x598707
mov esi, eax
lea eax, [ebp*4]
push eax
push dword [edx + 8]
movsx ecx, word [esi + 0xb4]
add ecx, esi
push ecx
call fcn.0045d810
add esp, 0xc
mov dword [esi + 0xb8], 0x3f800000
push dword [0x884c50]
call edi
mov ebp, eax
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 0xc]
jae 0x598732
mov dword [esi], str.Stanalyze_recycling_at_root
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebp + 4], eax
cmp byte [esp + 0x34], 0
je 0x5988c4
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x58]
mov ebx, dword [eax + 4]
sub ebx, 1
js 0x5988c4
mov ebp, ebx
shl ebp, 7
push dword [0x884c50]
call edi
mov esi, eax
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
jae 0x598786
mov dword [ecx], str.Ltfor_each_node
mov dword [ecx + 0xc], str.Stcompute_isGen
rdtsc
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x58]
mov eax, dword [eax]
cmp byte [eax + ebp + 0x79], 0
je 0x59885a
push dword [0x884c50]
call edi
mov dword [esp + 0x14], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x5987ce
mov dword [esi], str.StgenNodeClone
rdtsc
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
push dword [0x884c50]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x58]
mov eax, dword [eax]
mov eax, dword [eax + ebp + 0x54]
mov dword [esp + 0x24], eax
call edi
mov dword [esp + 0x14], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x598813
mov dword [esi], str.Stinsert_into_map
rdtsc
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x30]
mov dword [ecx + ebx*4], eax
push dword [0x884c50]
call edi
mov ecx, eax
mov esi, dword [ecx + 4]
cmp esi, dword [ecx + 0xc]
jae 0x59884b
mov dword [esi], str.StcanRecycleOutput
rdtsc
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x1c]
lea eax, [esi + 0xc]
mov dword [esi + 4], edx
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
call eax
test al, al
je 0x598899
push dword [0x884c50]
call edi
mov dword [esp + 0x20], eax
mov esi, dword [eax + 4]
cmp esi, dword [eax + 0xc]
jae 0x59888b
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], eax
add ebp, 0xffffff80
sub ebx, 1
jns 0x598754
jmp 0x5988c4
push dword [0x884c50]
call edi
mov ebx, eax
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 0xc]
jae 0x5988c4
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x2c]
movss xmm0, dword [ebx + 0x40]
comiss xmm0, dword [0x718814]
jbe 0x59893d
push dword [0x884c50]
call edi
mov ebp, eax
mov esi, dword [ebp + 4]
cmp esi, dword [ebp + 0xc]
jae 0x598901
mov dword [esi], str.StcomputeTimestepForActiveNodes
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [ebp + 4], eax
mov ebp, dword [esp + 0x10]
push dword [0x884adc]
mov eax, dword [ebp + 0x58]
mov esi, dword [eax + 4]
call edi
mov ecx, dword [eax + 0x2c]
lea eax, [esi*4]
push eax
push ecx
call fcn.00460640
movss xmm0, dword [ebx + 0x40]
add esp, 8
mov dword [ebx + 0x38], eax
push eax
push ecx
mov ecx, ebp
movss dword [esp], xmm0
call fcn.0059b020
push dword [0x884c50]
call edi
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x598968
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x30]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc