Function at 0x5abe90
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6edbc0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x5abeb4
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x318]
cmp eax, ebx
mov ecx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x4c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
jne 0x5abef9
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x4c], ebx
push eax
push 2
push 0x71
call fcn.005b13c0
add esp, 8
push eax
push 0xb
call fcn.005a9b10
add esp, 0xc
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push eax
call fcn.005aebf0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x5abf2d
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0x4c], ebx
push ecx
push 2
push 0x6c
call fcn.005b13c0
add esp, 8
push eax
push edi
call fcn.005a9b10
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x8ce2]
cmp eax, ebx
je 0x5abf46
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8ce2], ebx
mov eax, dword [esi + 0x8f50]
cmp eax, ebx
je 0x5abf5f
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8f50], ebx
push 1
call fcn.005aed90
add esp, 4
cmp eax, ebx
mov dword [esi + 0x98a], eax
je 0x5abfa2
mov edx, dword [ebp + 0x28]
push edx
push 2
push 0x72
call fcn.005b13c0
add esp, 8
push eax
mov eax, dword [esi + 0x98a]
push eax
call fcn.005a9b10
add esp, 0xc
mov dword [ebp + 0x4c], ebx
mov eax, dword [esi + 0x98a]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0xc7c]
or edi, 0xffffffff
cmp ecx, ebx
mov eax, 0xfffffffe
mov edx, edi
je 0x5ac066
cmp eax, 0xfffffffe
jne 0x5ac036
cmp edx, edi
jne 0x5ac036
call fcn.005aa1f0
movsx ecx, word [esi + 0xc24]
cmp dword [esi + 0xc80], ecx
je 0x5abff2
push 0x6a0f60
push edi
push ebx
push 1
push ebx
call fcn.005af380
add esp, 0x14
cmp eax, 1
jne 0x5ac09e
call fcn.005aa280
test eax, eax
jne 0x5ac027
call fcn.005aa230
test eax, eax
je 0x5ac027
push 1
call fcn.005a9d30
add esp, 4
cmp edx, ebx
jl 0x5ac027
jg 0x5ac018
cmp eax, ebx
jb 0x5ac027
movsx ecx, word [esi + 0xc24]
mov dword [esi + 0xc80], ecx
jmp 0x5abfba
mov dword [esi + 0xc80], edi
mov eax, 0xfffffffe
mov edx, edi
jmp 0x5abfba
cmp edx, ebx
jl 0x5ac091
jg 0x5ac040
cmp eax, ebx
jb 0x5ac091
add eax, 0x16
push ebx
adc edx, ebx
push edx
mov edx, dword [esi + 0x97e]
push eax
push edx
call fcn.005bfdc0
movsx eax, word [esi + 0xc24]
add esp, 0x10
mov dword [esi + 0xc80], eax
jmp 0x5ac091
push 1
call fcn.005a9d30
add esp, 4
cmp edx, ebx
jl 0x5ac09e
jg 0x5ac07a
cmp eax, ebx
jb 0x5ac09e
mov ecx, dword [esi + 0x97e]
add eax, 0x16
adc edx, ebx
push ebx
push edx
push eax
push ecx
call fcn.005bfdc0
add esp, 0x10
xor edi, edi
mov di, word [esi + 0xc34]
cmp edi, ebx
jne 0x5ac0b9
mov edx, dword [esp + 0x18]
push 0x6a0f60
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov dword [ebp + 0x4c], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
xor esi, esi
cmp edi, ebx
jle 0x5ac0d9
mov eax, dword [esp + 0x10]
cmp esi, eax
jge 0x5ac0dd
call fcn.005aeff0
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, edi
mov byte [esi + ecx - 1], al
jl 0x5ac0bf
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
cmp edi, eax
mov byte [esi + edx], bl
jl 0x5ac0ea
mov edi, eax
mov dword [ebp + 0x4c], edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret