Function at 0x596fa0
Capabilities:
Execute anti-debugging instructions
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push esi
mov esi, dword [esp + 0x74]
mov dword [esp + 4], ecx
cmp dword [esi + 4], 0
jne 0x597533
push ebx
mov ebx, dword [esi + 0xc]
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x596fcb
mov eax, dword [esi]
mov eax, dword [eax + 0x44]
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x884c50]
call ebp
mov edi, eax
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0xc]
jae 0x59700b
mov dword [ecx], str.LthkbBehaviorGraph::update
mov dword [ecx + 0xc], str.StCopyVariablesToMembers
rdtsc
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [edi + 4], eax
push dword [0x884c50]
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x59703c
mov dword [edi], str.StUpdateActiveNodes
rdtsc
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x80]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0xae], 0
je 0x597053
push 0
push esi
mov ecx, ebx
call fcn.005f1b90
mov eax, dword [ebx + 0x58]
push dword [0x884c50]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x59708e
mov dword [edi], str.StComputeTimesteps
rdtsc
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x80]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
push dword [0x884adc]
call ebp
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + 0xc]
lea ebx, [ecx*4 + 0x7f]
mov dword [esp + 0x18], edx
and ebx, 0xffffff80
mov dword [esp + 0x5c], ebx
lea ecx, [ebx + edx]
cmp ebx, dword [eax + 8]
jg 0x5970c1
cmp ecx, dword [eax + 0x10]
ja 0x5970c1
mov dword [eax + 0xc], ecx
jmp 0x5970cf
push ebx
mov ecx, eax
call fcn.0046a3c0
mov edx, eax
mov dword [esp + 0x18], eax
movss xmm0, dword [esp + 0x84]
push edx
push ecx
mov ecx, dword [esp + 0x18]
movss dword [esp], xmm0
call fcn.0059b020
push dword [0x884c50]
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x597119
mov dword [edi], str.StUpdateNodes
rdtsc
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x80]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], 0
mov eax, dword [ecx + 0x14]
cmp byte [ecx + 0x18], 0
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x58]
setne byte [esp + 0x80]
mov eax, dword [eax]
mov eax, dword [eax + 0x54]
prefetchnta byte [eax]
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x5973f8
dec eax
mov dword [esp + 0x84], 0
mov dword [esp + 0x30], eax
push dword [0x884c50]
call ebp
mov edi, eax
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0xc]
jae 0x597195
mov dword [ecx], str.LtSingleNodeUpdate
mov dword [ecx + 0xc], str.StGetCloneAndSetupEventMap
rdtsc
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x84]
cmp ecx, dword [esp + 0x30]
jge 0x5971b5
mov eax, dword [ebx + 0x58]
mov eax, dword [eax]
mov eax, dword [eax + edx + 0xd4]
prefetchnta byte [eax]
mov eax, dword [ebx + 0x58]
mov edi, dword [eax]
mov eax, dword [esp + 0x18]
add edi, edx
movss xmm0, dword [eax + ecx*4]
lea ecx, [esp + 0x60]
mov ebx, dword [edi + 0x54]
mov eax, dword [edi + 0x58]
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x1c], ebx
movss dword [esp + 0x28], xmm0
mov dword [esp + 0x54], eax
call fcn.005964c0
mov dword [esp + 0x74], 0
mov byte [esp + 0x78], 0
cmp byte [edi + 0x78], 0
je 0x597204
lea eax, [esp + 0x60]
mov dword [esi + 0xc], eax
jmp 0x597215
mov eax, dword [edi + 0x58]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x68]
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x18], 1
test byte [ebx + 0x1c], 1
jne 0x59738d
cmp byte [edi + 0x79], 0
push dword [0x884c50]
je 0x597348
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x597254
mov dword [edi], str.StUpdateSingleGenerator
rdtsc
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x34]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
push dword [0x884c50]
call ebp
mov edi, eax
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 0xc]
jae 0x597286
mov dword [ecx], str.LtSingleGeneratorUpdate
mov dword [ecx + 0xc], str.StCopyVariablesToNodes
rdtsc
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 4], eax
lea eax, [ecx + 0x10]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x1c]
push 0
push esi
call fcn.00594f40
push dword [0x884c50]
mov dword [esp + 0x48], eax
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x5972c1
mov dword [edi], str.StUpdateGeneratorNode
rdtsc
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x1c]
movss xmm0, dword [esp + 0x28]
push ecx
movss dword [esp], xmm0
mov ecx, ebx
mov eax, dword [ebx]
push esi
call dword [eax + 0x14]
push dword [0x884c50]
call ebp
mov dword [esp + 0x28], eax
mov edi, dword [eax + 4]
cmp edi, dword [eax + 0xc]
jae 0x59730a
mov dword [edi], str.StCopyVariablesFromNodes
rdtsc
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x40]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
cmp dword [esp + 0x44], 0
je 0x59731b
push 1
push esi
mov ecx, ebx
call fcn.00594f40
push dword [0x884c50]
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x59738d
mov dword [edi], 0x77f784
rdtsc
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x48]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
jmp 0x59738d
call ebp
mov dword [esp + 0x44], eax
mov ebx, dword [eax + 4]
cmp ebx, dword [eax + 0xc]
jae 0x597373
mov dword [ebx], str.StUpdateSingleModifier
rdtsc
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x4c]
lea eax, [ebx + 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [ecx + 4], eax
movss xmm0, dword [esp + 0x28]
push edi
push ecx
movss dword [esp], xmm0
push dword [esp + 0x24]
push esi
call fcn.005d5ea0
add esp, 0x10
push dword [0x884c50]
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x5973b8
mov dword [edi], 0x77f784
rdtsc
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x50]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x60]
mov dword [esi + 0xc], eax
mov dword [esp + 0x74], 0
mov byte [esp + 0x78], 0
call fcn.00596500
mov eax, dword [esp + 0x20]
sub dword [esp + 0x84], 0xffffff80
inc eax
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x24]
jl 0x597163
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x58]
mov dword [ecx + 0x14], eax
mov al, byte [esp + 0x80]
mov byte [ecx + 0x18], al
cmp byte [ebx + 0xae], 0
push dword [0x884c50]
je 0x597451
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x597443
mov dword [edi], str.StActiveNodeUpdate
rdtsc
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x80]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x10]
push 0
push esi
call fcn.005f1b90
jmp 0x5974bc
call ebp
mov ebx, eax
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 0xc]
jae 0x59747c
mov dword [edi], str.StUpdateSync
rdtsc
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x80]
lea eax, [edi + 0xc]
mov dword [edi + 4], ecx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
xor edi, edi
mov eax, dword [eax + 0x58]
cmp dword [eax + 4], edi
jle 0x5974bc
mov ebp, dword [esp + 0x10]
xor ebx, ebx
mov edx, dword [eax]
add edx, ebx
cmp byte [edx + 0x79], 0
je 0x5974aa
mov ecx, dword [edx + 0x54]
mov eax, dword [edx + 0x58]
mov dword [esi + 4], eax
push edx
mov eax, dword [ecx]
push esi
call dword [eax + 0x64]
mov eax, dword [ebp + 0x58]
inc edi
sub ebx, 0xffffff80
cmp edi, dword [eax + 4]
jl 0x597490
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 4], 0
push dword [0x884c50]
call ebp
mov edi, eax
mov esi, dword [edi + 4]
cmp esi, dword [edi + 0xc]
jae 0x5974f4
mov dword [esi], 0x77f784
rdtsc
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x80]
lea eax, [esi + 0xc]
mov dword [esi + 4], ecx
mov dword [edi + 4], eax
push dword [0x884adc]
call ebp
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x18]
pop edi
pop ebp
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x597529
lea ecx, [edx + ebx]
cmp ecx, dword [eax + 0xc]
jne 0x597529
cmp dword [eax + 0x14], ebx
je 0x597529
mov dword [eax + 0xc], ebx
pop ebx
pop esi
add esp, 0x6c
ret 8
push edx
push ebx
mov ecx, eax
call fcn.0046a590
pop ebx
pop esi
add esp, 0x6c
ret 8