Function at 0x5ab210
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x5ab22e
pop edi
pop esi
mov eax, 4
pop ebp
ret
mov edi, dword [esp + 0x10]
mov ebp, dword [edi + 0xc]
test ebp, ebp
jne 0x5ab25d
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x6a
call fcn.005b13c0
add esp, 8
push eax
push 0x2f
call fcn.005a9b10
add esp, 0xc
mov eax, 0x2f
pop edi
pop esi
pop ebp
ret
lea edx, [esi + 0x8cfc]
lea eax, [esi + 0x318]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x5ab2d1
push edi
call fcn.005aa490
add esp, 4
test eax, eax
je 0x5ab2a6
mov ecx, dword [edi + 0x28]
push ecx
push 2
push 0x67
call fcn.005b13c0
add esp, 8
push eax
push 3
call fcn.005a9b10
add esp, 0xc
mov eax, 3
pop edi
pop esi
pop ebp
ret
mov eax, dword [edi + 0x4c]
test eax, eax
jne 0x5ab2d1
mov edx, dword [edi + 0x28]
push edx
push 2
push 0x6b
call fcn.005b13c0
add esp, 8
push eax
push 2
call fcn.005a9b10
add esp, 0xc
mov eax, 2
pop edi
pop esi
pop ebp
ret
mov eax, dword [esi + 0x34]
test eax, eax
je 0x5ab2fc
call fcn.005aab00
test eax, eax
mov dword [esi + 0x98a], eax
jne 0x5ab307
lea eax, [esi + 0x8f5c]
push eax
call fcn.005afaa0
add esp, 4
test eax, eax
jne 0x5ab2d8
jmp 0x5ab307
call fcn.005aab00
mov dword [esi + 0x98a], eax
mov eax, dword [esi + 0x98a]
test eax, eax
jne 0x5ab497
mov cx, word [esi + 0xc48]
xor edx, edx
mov eax, ecx
mov edi, 0x64
and eax, 0xffff
push ebx
shr eax, 9
add eax, 0x50
div edi
mov eax, ecx
and ecx, 0x1f
mov dword [esp + 0x14], ecx
mov cx, word [esi + 0xc46]
mov edi, ecx
mov bx, cx
shr edi, 5
and edi, 0x3f
and ecx, 0x1f
shr bx, 0xb
and edi, 0xffff
and ebx, 0xffff
push edi
push ebx
shr eax, 5
and eax, 0xf
shl ecx, 1
and eax, 0xffff
mov dword [ebp + 0x12e], ecx
lea ecx, [esi + 0xade]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x20]
and edx, 0xffff
push edx
push eax
push str._02u__02u__02u___02u:_02u
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esi + 0xc4e]
add esp, 0x1c
mov dword [ebp + 6], ecx
mov edx, dword [esi + 0xc52]
mov dword [ebp + 2], edx
mov eax, dword [esi + 0x34]
xor edi, edi
test eax, eax
jne 0x5ab3df
lea ebx, [esi + 0x8f5c]
push ebx
call fcn.005afaa0
mov edi, eax
add esp, 4
test edi, edi
je 0x5ab3df
mov eax, dword [esi + 0x38]
test eax, eax
je 0x5ab3df
push ebx
push ebx
call fcn.005afb80
add esp, 8
lea ebx, [esi + 0x8f5c]
push 0x104
lea eax, [ebp + 0x26]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x2f
push ebx
call fcn.005b14f0
test eax, eax
mov ebx, 1
jne 0x5ab40c
mov word [ebp + 0xe], ax
jmp 0x5ab410
mov word [ebp + 0xe], bx
mov cx, word [esi + 0xc44]
lea eax, [esi + 0xade]
push eax
mov word [ebp + 0xa], cx
mov dx, word [esi + 0xc42]
lea eax, [ebp + 0x14]
push eax
mov word [ebp + 0xc], dx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 0xc4a]
mov dword [ebp + 0x10], ecx
mov dx, word [esi + 0x98e]
mov word [ebp], dx
mov eax, dword [esi + 0x98e]
inc eax
mov dword [esi + 0x98e], eax
mov eax, dword [esi + 0xc60]
and eax, 0x7fff
mov dword [ebp + 0x12a], eax
mov cl, byte [esi + 0xc42]
test bl, cl
pop ebx
je 0x5ab47d
or ah, 0x80
mov dword [ebp + 0x12a], eax
test edi, edi
je 0x5ab48b
or dword [ebp + 0x12a], 0x10000
mov dword [ebp + 0x132], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret