Function at 0x5b4e80
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x418
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x5b4ea8
pop edi
mov eax, 5
pop esi
add esp, 0x418
ret
mov dword [esp + 0x18], 7
mov eax, dword [edi + 0xab2]
mov ecx, 0x30d40
cmp ecx, eax
sbb edx, edx
neg edx
add edx, 7
mov dword [esp + 0x14], edx
mov al, byte [edi + 0xafc]
test al, 4
mov dword [edi + 0x908a], 0
je 0x5b50eb
lea eax, [esp + 0x20]
push 0x100
push eax
mov dword [esp + 0x24], 9
call fcn.005b3790
add esp, 8
test eax, eax
jne 0x5b524e
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push edx
push eax
push eax
push 0x100
lea eax, [esp + 0x34]
push 0x100
push eax
call fcn.005b24f0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x5b4f4c
cmp esi, 1
jne 0x5b524c
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005b29e0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea edx, [esp + 0x20]
push 0x40
push edx
call fcn.005b3790
mov esi, eax
add esp, 8
test esi, esi
je 0x5b4f79
mov eax, dword [esp + 0x10]
push eax
call fcn.005b29e0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push ecx
push edx
push 0x698988
push 0x698908
push 0
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.005b24f0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x5b4fce
cmp esi, 1
jne 0x5b4fb6
mov ecx, dword [esp + 8]
push ecx
call fcn.005b29e0
add esp, 4
mov edx, dword [esp + 0x10]
push edx
call fcn.005b29e0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.005b3790
mov esi, eax
add esp, 8
test esi, esi
jne 0x5b5075
mov al, byte [edi + 0xafc]
lea ecx, [esp + 0xc]
test al, 2
lea eax, [esp + 0x14]
push eax
push ecx
push 0x698988
je 0x5b5047
push 0x698a88
push esi
lea edx, [esp + 0x34]
push 0x40
push edx
call fcn.005b24f0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x5b5022
cmp esi, 1
jne 0x5b5075
jmp 0x5b5068
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.005b3840
jmp 0x5b50ba
push 0x698a08
push 0
lea edx, [esp + 0x34]
push 0x40
push edx
call fcn.005b24f0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x5b5097
cmp esi, 1
jne 0x5b5075
mov eax, dword [esp + 0xc]
push eax
call fcn.005b29e0
add esp, 4
mov ecx, dword [esp + 8]
push ecx
call fcn.005b29e0
mov edx, dword [esp + 0x14]
push edx
call fcn.005b29e0
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
call fcn.005b3df0
add esp, 0x18
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call fcn.005b29e0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005b29e0
mov edx, dword [esp + 0x18]
push edx
call fcn.005b29e0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.005b3790
add esp, 8
test eax, eax
jne 0x5b524e
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push ecx
push edx
push 0x698988
push 0x698888
push eax
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.005b24f0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x5b514d
cmp esi, 1
jne 0x5b524c
mov ecx, dword [esp + 8]
push ecx
call fcn.005b29e0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
lea edx, [esp + 0x20]
push 0x40
push edx
call fcn.005b3790
mov esi, eax
add esp, 8
test esi, esi
je 0x5b517a
mov eax, dword [esp + 8]
push eax
call fcn.005b29e0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
mov al, byte [edi + 0xafc]
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
test al, 2
push edx
push 0x698988
je 0x5b51d1
push 0x698a88
push 0
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.005b24f0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x5b51b6
cmp esi, 1
jne 0x5b51ff
jmp 0x5b51f2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.005b43a0
jmp 0x5b5230
push 0x698a08
push 0
lea eax, [esp + 0x34]
push 0x40
push eax
call fcn.005b24f0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x5b5217
cmp esi, 1
jne 0x5b51ff
mov ecx, dword [esp + 0xc]
push ecx
call fcn.005b29e0
add esp, 4
mov edx, dword [esp + 8]
push edx
call fcn.005b29e0
add esp, 4
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call fcn.005b4910
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov esi, eax
push ecx
call fcn.005b29e0
mov edx, dword [esp + 0xc]
push edx
call fcn.005b29e0
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x418
ret