Function at 0x5b5e00
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, ecx
push ebp
mov dword [esp + 0x20], esi
call fcn.005951a0
mov dword [esi], vtable.hkbStateMachine.0
lea ebx, [esi + 0x5c]
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x50], 0
mov byte [esi + 0x58], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], connect
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], connect
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], connect
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], connect
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], connect
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0xffffffff
mov dword [esi + 0xb0], 0
movq xmm0, qword [ebp + 0x28]
movq qword [esi + 0x28], xmm0
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x18], ebx
test ecx, ecx
je 0x5b5f26
call fcn.0045c0c0
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x5b5f32
call fcn.0045c160
mov eax, dword [ebp + 0x34]
mov dword [esi + 0x34], eax
lea eax, [ebp + 0x38]
push 0x20
push eax
lea eax, [esi + 0x38]
push eax
call fcn.0045d810
mov eax, dword [ebx + 8]
add esp, 0xc
mov ecx, dword [ebp + 0x60]
and eax, 0x3fffffff
cmp eax, ecx
jge 0x5b5f6a
push 4
push ecx
push ebx
push 0x7d8954
call fcn.00467b80
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x14], ecx
cmp dword [ebp + 0x60], ecx
jle 0x5b61e5
push edi
nop word [eax + eax]
mov eax, dword [ebp + 0x5c]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x14], eax
mov edi, dword [eax + 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], connect
mov dword [esp + 0x34], edi
test edi, edi
je 0x5b5fec
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [edi*4 + 0x7f]
and ecx, 0xffffff80
mov edx, dword [eax + 0xc]
lea esi, [edx + ecx]
cmp ecx, dword [eax + 8]
jg 0x5b5fdc
cmp esi, dword [eax + 0x10]
ja 0x5b5fdc
mov dword [eax + 0xc], esi
mov dword [esp + 0x24], edx
jmp 0x5b5ff4
push ecx
mov ecx, eax
call fcn.0046a3c0
mov edx, eax
mov dword [esp + 0x24], edx
jmp 0x5b5ff4
mov dword [esp + 0x24], 0
mov eax, dword [esp + 0x24]
mov ecx, edi
or ecx, 0x80000000
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
and ecx, 0x3fffffff
cmp ecx, edi
jge 0x5b6030
add ecx, ecx
mov eax, edi
cmp edi, ecx
push 4
cmovl eax, ecx
push eax
lea eax, [esp + 0x2c]
push eax
push 0x7d8954
call fcn.00467b80
add esp, 0x10
xor cl, cl
mov dword [esp + 0x28], edi
xor ebp, ebp
mov byte [esp + 0x13], cl
test edi, edi
jle 0x5b6085
mov ebx, dword [esp + 0x14]
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebx + 0x1c]
lea esi, [ebp*4]
mov ecx, dword [esp + 0x40]
push dword [eax + esi]
call fcn.00598eb0
mov ecx, dword [esp + 0x24]
test eax, eax
mov dword [esi + ecx], eax
setne al
mov cl, byte [esp + 0x13]
inc ebp
or cl, al
mov byte [esp + 0x13], cl
cmp ebp, edi
jl 0x5b6050
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
cmp dword [ebp + 8], 0
jne 0x5b60c4
test cl, cl
jne 0x5b60c4
mov ecx, ebp
call fcn.0045c0c0
mov eax, dword [ebx + 8]
and eax, 0x3fffffff
cmp dword [ebx + 4], eax
jne 0x5b60b7
push 4
push ebx
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], ebp
jmp 0x5b6148
xor esi, esi
test edi, edi
jle 0x5b60f4
nop word [eax + eax]
mov ecx, dword [esp + 0x24]
cmp dword [ecx + esi*4], 0
jne 0x5b60ef
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + esi*4]
call fcn.0045c0c0
inc esi
cmp esi, edi
jl 0x5b60d0
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x48
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, 0x48
mov word [eax + 4], cx
lea ecx, [esp + 0x24]
push ecx
push ebp
mov ecx, eax
call fcn.005b7790
mov ecx, dword [ebx + 8]
mov esi, eax
and ecx, 0x3fffffff
cmp dword [ebx + 4], ecx
jne 0x5b6140
push 4
push ebx
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], esi
inc dword [ebx + 4]
xor ecx, ecx
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
cmp edi, dword [esp + 0x24]
push dword [0x884adc]
cmove eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
lea esi, [eax*4 + 0x7f]
and esi, 0xffffff80
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esi + 0xf]
and edx, 0xfffffff0
cmp esi, dword [eax + 8]
jg 0x5b6197
lea ecx, [edx + edi]
cmp ecx, dword [eax + 0xc]
jne 0x5b6197
cmp dword [eax + 0x14], edi
je 0x5b6197
mov dword [eax + 0xc], edi
jmp 0x5b61a0
push edx
push edi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], 0
test eax, eax
js 0x5b61ca
and eax, 0x3fffffff
mov ecx, 0x7d8954
shl eax, 2
push eax
mov eax, dword [0x7d8954]
push dword [esp + 0x28]
call dword [eax + 0x10]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebp + 0x60]
jl 0x5b5f80
mov esi, dword [esp + 0x20]
pop edi
mov ecx, dword [ebp + 0x68]
mov dword [esi + 0x68], ecx
test ecx, ecx
je 0x5b61f4
call fcn.0045c0c0
mov ecx, esi
call fcn.005bbd60
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8