Function at 0x5ac100
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edbc0]
sub esp, 8
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x5ac128
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0xc]
mov edi, dword [eax + 0x14]
cmp ebx, ebp
mov dword [esp + 0x10], edi
jne 0x5ac147
pop edi
pop esi
pop ebp
mov eax, 0x2f
pop ebx
add esp, 8
ret
lea ecx, [esi + 0x318]
push ecx
call fcn.005aebf0
add esp, 4
cmp eax, ebp
jne 0x5ac4e8
mov eax, dword [esi + 0x8ce2]
cmp eax, ebp
je 0x5ac177
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8ce2], ebp
mov eax, dword [esi + 0x8f50]
cmp eax, ebp
je 0x5ac190
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0x8f50], ebp
push ebp
call fcn.005aed90
add esp, 4
cmp eax, ebp
mov dword [esi + 0x98a], eax
je 0x5ac1d5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x28]
push eax
push 2
push 0x72
call fcn.005b13c0
mov ecx, dword [esi + 0x98a]
add esp, 8
push eax
push ecx
call fcn.005a9b10
mov eax, dword [esi + 0x98a]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp dword [esi + 0xc36], ebp
jne 0x5ac1f6
mov dword [esi + 0x976], ebp
mov dword [esi + 0x97a], ebp
call fcn.005aab00
mov dword [esi + 0x98a], eax
jmp 0x5ac1fc
mov dword [esi + 0x98a], ebp
cmp edi, ebp
jl 0x5ac4c4
xor edx, edx
mov eax, edi
mov dx, word [esi + 0xc2a]
and eax, 0xffff
dec edx
cmp eax, edx
jg 0x5ac4c4
cmp dword [esi + 0x98a], ebp
je 0x5ac257
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 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
mov eax, dword [esi + 0x98a]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi + 0x34]
mov dword [esp + 0x14], ebp
cmp eax, ebp
je 0x5ac2ea
mov dword [esi + 0x976], ebp
mov dword [esi + 0x97a], ebp
or edi, 0xffffffff
mov dword [esi + 0x98a], ebp
cmp edi, dword [esp + 0x10]
je 0x5ac2a8
call fcn.005aab00
lea ecx, [esi + 0x8f5c]
mov dword [esi + 0x98a], eax
push ecx
call fcn.005afaa0
add esp, 4
test eax, eax
jne 0x5ac2a0
inc edi
cmp dword [esi + 0x98a], ebp
je 0x5ac27b
cmp dword [esi + 0x98a], ebp
je 0x5ac36b
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x28]
push eax
push 2
push 0x82
call fcn.005b13c0
add esp, 8
push eax
push 0x19
call fcn.005a9b10
add esp, 0xc
mov byte [esi + 0x8cfc], 0
mov eax, 0x19
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, edi
cdq
mov dword [esi + 0x976], eax
mov dword [esi + 0x97a], edx
call fcn.005aab00
lea edi, [esi + 0x8f5c]
mov dword [esi + 0x98a], eax
push edi
call fcn.005afaa0
add esp, 4
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x5ac32a
cmp dword [esi + 0x38], ebp
je 0x5ac32a
push edi
push edi
call fcn.005afb80
add esp, 8
cmp dword [esi + 0x98a], ebp
je 0x5ac36b
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 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
mov eax, dword [esi + 0x98a]
add esp, 0xc
mov byte [esi + 0x8cfc], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov cx, word [esi + 0xc48]
xor edx, edx
mov eax, ecx
mov edi, 0x64
and eax, 0xffff
shr eax, 9
add eax, 0x50
div edi
mov eax, ecx
and ecx, 0x1f
mov dword [esp + 0x1c], ecx
mov cx, word [esi + 0xc46]
mov edi, ecx
mov bp, cx
shr edi, 5
and edi, 0x3f
and ecx, 0x1f
shr bp, 0xb
and edi, 0xffff
and ebp, 0xffff
push edi
push ebp
shr eax, 5
and eax, 0xf
shl ecx, 1
and eax, 0xffff
mov dword [ebx + 0x12e], ecx
lea ecx, [esi + 0xade]
and edx, 0xffff
push edx
mov edx, dword [esp + 0x28]
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
lea edi, [esi + 0x8f5c]
mov dword [ebx + 6], ecx
mov edx, dword [esi + 0xc52]
push 0x104
lea eax, [ebx + 0x26]
push edi
push eax
mov dword [ebx + 2], edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x2f
push edi
call fcn.005b14f0
test eax, eax
jne 0x5ac42d
mov word [ebx + 0xe], ax
jmp 0x5ac433
mov word [ebx + 0xe], 1
mov cx, word [esi + 0xc44]
lea eax, [esi + 0xade]
push eax
mov word [ebx + 0xa], cx
mov dx, word [esi + 0xc42]
lea eax, [ebx + 0x14]
push eax
mov word [ebx + 0xc], dx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 0xc4a]
mov dx, word [esp + 0x10]
mov dword [ebx + 0x10], ecx
mov word [ebx], dx
mov eax, dword [esi + 0xc60]
and eax, 0x7fff
mov dword [ebx + 0x12a], eax
mov cl, byte [esi + 0xc42]
test cl, 1
je 0x5ac490
or ah, 0x80
mov dword [ebx + 0x12a], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5ac4a9
mov eax, dword [esi + 0x34]
test eax, eax
jne 0x5ac4a9
or dword [ebx + 0x12a], 0x10000
mov dword [ebx + 0x132], 0
mov byte [esi + 0x8cfc], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x28]
push ecx
push 2
push 0x73
call fcn.005b13c0
add esp, 8
push eax
push 0x19
call fcn.005a9b10
add esp, 0xc
mov eax, 0x19
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret