Function at 0x5aab00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 0x10
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x5aab24
pop esi
mov eax, 4
pop ebp
add esp, 0x10
ret
mov eax, dword [esi + 0xc36]
xor ecx, ecx
cmp eax, ebp
push edi
jne 0x5aad23
mov dx, word [esi + 0xc24]
mov ax, word [esi + 0xc26]
mov edi, 1
cmp dx, ax
mov dword [esp + 0x14], edi
je 0x5aaca0
movsx edi, dx
and eax, 0xffff
push ebx
mov dword [esi + 0x976], ebp
mov ebx, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esi + 0x97a], ebp
cmp dword [esp + 0x14], ebp
jne 0x5aad1a
call fcn.005aa1f0
cmp edi, 0xffffffff
jne 0x5aab9f
cmp ebx, ebp
je 0x5aabcc
push 0x6a0f60
lea ecx, [ebx + 1]
push ebp
push ecx
push 1
push ebp
jmp 0x5aabb0
lea edx, [edi + 1]
push 0x6a0f60
lea eax, [ebx + 1]
push edx
push eax
push 1
push 1
call fcn.005af380
add esp, 0x14
cmp eax, 1
je 0x5aabcc
mov ecx, 0x30
cmp eax, 1
je 0x5aab78
jmp 0x5aad1a
call fcn.005aa230
cmp eax, 0xffffffff
jne 0x5aabec
push 0x6a0f60
push ebp
push ebp
push ebp
push 2
call fcn.005af380
add esp, 0x14
xor ecx, ecx
jmp 0x5aabc2
mov ecx, dword [esp + 0x18]
mov dword [esi + 0xc80], ebx
push ecx
call fcn.005aaf40
add esp, 4
cmp eax, ebp
jle 0x5aac87
mov ecx, dword [esp + 0x10]
xor edx, edx
mov dx, word [esi + 0xc2a]
add ecx, eax
cmp ecx, edx
mov dword [esp + 0x10], ecx
jge 0x5aac2a
inc ebx
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x5aab78
cmp edi, 0xffffffff
jne 0x5aac36
mov word [esi + 0xc2a], cx
lea edi, [esi + 0x8cfc]
lea eax, [esi + 0x8e00]
push edi
push eax
mov dword [esi + 0xc36], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 0x8f28]
push ecx
push edi
call fcn.005b1130
mov edi, dword [esp + 0x24]
add esp, 8
mov dword [esi + 0x976], ebp
mov dword [esi + 0x97a], ebp
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ebp
xor ecx, ecx
jmp 0x5aab78
push 0x6a0f60
push ebp
push ebp
push ebp
push 3
call fcn.005af380
add esp, 0x14
xor ecx, ecx
jmp 0x5aab78
mov dword [esi + 0x976], ebp
push edi
mov dword [esi + 0x97a], ebp
call fcn.005aaf40
xor edx, edx
add esp, 4
mov dx, word [esi + 0xc2a]
cmp eax, edx
je 0x5aace2
push 0x6a0f60
push ebp
push ebp
push ebp
push 3
call fcn.005af380
add esp, 0x14
mov ecx, 3
mov eax, ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov dword [esi + 0xc36], edi
lea edi, [esi + 0x8cfc]
lea eax, [esi + 0x8e00]
push edi
mov dword [esi + 0x976], ebp
push eax
mov dword [esi + 0x97a], ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 0x8f28]
push ecx
push edi
call fcn.005b1130
add esp, 8
jmp 0x5aad23
cmp ecx, ebp
pop ebx
jne 0x5aadb8
mov ecx, dword [esi + 0x97a]
mov edi, dword [esi + 0x976]
xor eax, eax
mov ax, word [esi + 0xc2a]
cdq
cmp ecx, edx
jg 0x5aadb3
jl 0x5aad43
cmp edi, eax
jae 0x5aadb3
cmp ecx, ebp
jl 0x5aadb3
jg 0x5aad4d
cmp edi, ebp
jb 0x5aadb3
mov edx, dword [esi + 0x976]
mov ecx, dword [esi + 0xc68]
lea eax, [esi + 0xc3a]
push edx
mov edx, dword [esi + 0xc70]
push eax
push ecx
push edx
call fcn.005aa420
mov eax, dword [esi + 0x976]
mov ecx, dword [esi + 0xc68]
mov edx, dword [esi + 0xc70]
push eax
push ecx
push edx
call fcn.005aa330
mov ecx, dword [esi + 0x976]
add esp, 0x1c
add ecx, 1
mov dword [esi + 0x976], ecx
mov eax, dword [esi + 0x97a]
adc eax, ebp
xor ecx, ecx
mov dword [esi + 0x97a], eax
pop edi
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret
mov ecx, 2
pop edi
pop esi
mov eax, ecx
pop ebp
add esp, 0x10
ret