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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xac]
test ecx, ecx
js 0x5bb8fe
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax + 0x3c]
mov dword [edi + 0xac], 0xffffffff
jmp 0x5bba36
mov al, byte [edi + 0x56]
cmp al, 3
jne 0x5bb929
mov ecx, dword [edi + 0x34]
mov ebx, dword [esp + 0xa0]
push edi
push ebx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5bba3d
mov esi, dword [edi + 0x38]
jmp 0x5bba3d
cmp al, 2
jne 0x5bb9e8
push dword [0x884adc]
mov esi, dword [edi + 0x60]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ebp, [esi*4 + 0x7f]
and ebp, 0xffffff80
mov ebx, dword [eax + 0xc]
lea ecx, [ebx + ebp]
cmp ebp, dword [eax + 8]
jg 0x5bb95f
cmp ecx, dword [eax + 0x10]
ja 0x5bb95f
mov dword [eax + 0xc], ecx
jmp 0x5bb969
push ebp
mov ecx, eax
call fcn.0046a3c0
mov ebx, eax
xor ecx, ecx
xor edx, edx
cmp dword [edi + 0x60], ecx
jle 0x5bb9ac
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + ecx*4]
cmp byte [eax + 0x44], 0
je 0x5bb982
mov dword [ebx + edx*4], ecx
inc edx
inc ecx
cmp ecx, dword [edi + 0x60]
jl 0x5bb972
test edx, edx
je 0x5bb9ac
mov eax, dword [esp + 0xa0]
mov ecx, edi
mov eax, dword [eax]
push dword [eax + 0x30]
push edx
push ebx
call fcn.005bbb50
mov ecx, dword [ebx + eax*4]
mov eax, dword [edi + 0x5c]
mov eax, dword [eax + ecx*4]
jmp 0x5bb9b1
mov eax, dword [edi + 0x5c]
mov eax, dword [eax]
push dword [0x884adc]
mov esi, dword [eax + 0x3c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp + 0xf]
and edx, 0xfffffff0
cmp ebp, dword [eax + 8]
jg 0x5bb9dd
lea ecx, [edx + ebx]
cmp ecx, dword [eax + 0xc]
jne 0x5bb9dd
cmp dword [eax + 0x14], ebx
je 0x5bb9dd
mov dword [eax + 0xc], ebx
jmp 0x5bba36
push edx
push ebx
mov ecx, eax
call fcn.0046a590
jmp 0x5bba36
test al, al
je 0x5bba33
mov edx, dword [edi + 0x4c]
cmp edx, 0xffffffff
je 0x5bba33
mov ebx, dword [esp + 0xa0]
push edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0x70]
mov eax, dword [ebx + 4]
push ecx
push dword [eax + 0x70]
call fcn.005c42b0
mov ecx, dword [ebx]
add esp, 0xc
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x78]
mov ecx, dword [ecx + 8]
mov esi, dword [ecx + eax*4]
mov ecx, edi
push esi
call fcn.005b8510
cmp eax, 0xffffffff
jne 0x5bba3d
mov esi, dword [edi + 0x38]
jmp 0x5bba3d
mov esi, dword [edi + 0x38]
mov ebx, dword [esp + 0xa0]
push esi
mov ecx, edi
call fcn.005b8510
cmp eax, 0xffffffff
je 0x5bba6d
push esi
mov ecx, edi
call fcn.005b8510
mov ecx, dword [edi + 0x5c]
mov eax, dword [ecx + eax*4]
cmp byte [eax + 0x44], 0
je 0x5bba6d
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 4
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0x80000080
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 0x14], 1
mov byte [esp + 0x1c], 0
mov ecx, dword [eax + 0x30]
test ecx, ecx
je 0x5bba9b
mov ecx, dword [ecx + 0x20]
and ecx, 0xfffffffe
jmp 0x5bbaa0
mov ecx, 0x7181e8
mov eax, dword [edi + 0x20]
and eax, 0xfffffffe
push eax
push ecx
lea eax, [esp + 0x18]
push str._s__s:_Start_state_selection_failed.__Choosing_an_arbitrary_state.
push eax
call fcn.0045efe0
mov ecx, dword [0x884c54]
add esp, 0x10
mov eax, dword [ecx]
push 0xaef
push str.StateMachinehkbStateMachine.cpp
push dword [esp + 0x18]
push 0xa781b89f
push 1
call dword [eax + 0xc]
mov ebp, dword [edi + 0x5c]
xor ecx, ecx
mov esi, dword [edi + 0x60]
mov eax, dword [ebp]
mov ebx, dword [eax + 0x3c]
test esi, esi
jle 0x5bbb09
mov edx, ebp
nop
mov eax, dword [edx]
cmp byte [eax + 0x44], 0
jne 0x5bbb02
inc ecx
add edx, 4
cmp ecx, esi
jl 0x5bbaf0
jmp 0x5bbb09
mov eax, dword [ebp + ecx*4]
mov ebx, dword [eax + 0x3c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], 0
test ecx, ecx
js 0x5bbb32
mov edx, dword [0x7d8950]
and ecx, 0x3fffffff
push ecx
push dword [esp + 0x14]
mov ecx, 0x7d8950
call dword [edx + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x8c
ret 4