Function at 0x5b2de0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x6eeaa0]
push ebx
push ebp
push esi
push eax
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x5b2e04
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret
push edi
mov edi, dword [esi + 0x8f50]
mov ecx, 0x3c00
mov eax, 0xaaaaaaaa
mov dword [esi + 0x8cf2], ebx
mov dword [esi + 0x8cee], ebx
mov dword [esi + 0x9060], ebx
mov dword [esi + 0x9064], ebx
mov dword [esi + 0x8f54], edi
mov byte [esi + 0x8cf6], bl
mov dword [esi + 0x8cde], 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x44]
pop edi
cmp eax, ebx
jne 0x5b2e9f
cmp dword [esi + 0x40], ebx
jne 0x5b2e9f
cmp dword [esi + 0x24], ebx
je 0x5b2e9f
lea ecx, [esi + 0x9ae]
lea edx, [esi + 0x1ac]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x1a8]
lea ecx, [esi + 0x30c]
mov dword [esi + 0x314], eax
push ecx
mov dword [eax], ebx
mov eax, dword [esi + 0x2c]
push ebx
push 0x4a
push eax
mov dword [ecx], 1
mov dword [esi + 0x310], 0x164
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x5b2eba
mov eax, dword [esi + 0xb14]
cmp eax, ebx
je 0x5b2eba
mov ecx, dword [esi + 0xb18]
lea edx, [esi + 0x9ae]
push ecx
push ebx
push edx
call eax
xor eax, eax
mov dword [esi + 0x54], ebx
mov ax, word [esi + 0xafe]
mov dword [esi + 0x9a6], ebx
cmp eax, 8
mov dword [esi + 0x58], ebx
ja case.0x5b2ed8.7
jmp dword [eax*4 + 0x5b30b0]
lea eax, [esp + 0xe]
push esi
push eax
call fcn.005b2330
add esp, 8
test eax, eax
je 0x5b2f8a
cmp dword [esi + 0x906c], ebx
jne 0x5b2f8a
cmp dword [esi], ebx
jne 0x5b2f8a
mov ecx, dword [esi + 0x8f54]
mov dl, byte [esp + 0xe]
mov byte [ecx], dl
mov edx, dword [esi + 0x8f54]
mov ecx, dword [esi + 0x9064]
inc edx
inc ecx
mov dword [esi + 0x8f54], edx
mov eax, ecx
mov dword [esi + 0x9064], ecx
cmp eax, 0xf000
jne 0x5b2f41
push esi
call fcn.005b26c0
add esp, 4
lea eax, [esp + 0xe]
push esi
push eax
call fcn.005b2330
add esp, 8
test eax, eax
jne 0x5b2ef5
jmp 0x5b2f8a
call fcn.005b64c0
jmp 0x5b2f8a
call fcn.005b5fa0
jmp 0x5b2f8a
call fcn.005b5bc0
cmp eax, ebx
je 0x5b2f8a
cmp eax, 5
je 0x5b2f8a
jmp 0x5b2f7c
call fcn.005b4430
cmp eax, ebx
je 0x5b2f8a
sub eax, 3
neg eax
sbb eax, eax
and al, 0xfd
add eax, 5
mov ebp, eax
cmp dword [esi + 0x20], ebx
je 0x5b2f99
pop esi
pop ebp
mov eax, 3
pop ebx
pop ecx
ret
cmp dword [esi], ebx
je 0x5b2fc3
cmp dword [esi + 0x44], ebx
jne 0x5b2fa7
cmp dword [esi + 0x3c], ebx
je 0x5b2fb9
cmp dword [esi + 0x906c], 2
jne 0x5b2fb9
mov dword [esi], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop esi
pop ebp
mov eax, 0x30
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x906c]
cmp eax, ebx
je 0x5b2fef
cmp dword [esi + 0x44], ebx
jne 0x5b301b
cmp dword [esi + 0x3c], ebx
jne 0x5b301b
cmp eax, 1
jle 0x5b2fe6
pop esi
pop ebp
mov eax, 0x32
pop ebx
pop ecx
ret
cmp eax, ebx
mov ebp, 1
jne 0x5b3042
push esi
call fcn.005b26c0
add esp, 4
test eax, eax
je 0x5b3042
mov eax, dword [esi + 0x906c]
cmp eax, 1
jle 0x5b303d
cmp dword [esi + 0x44], ebx
jne 0x5b302e
cmp dword [esi + 0x3c], ebx
jne 0x5b302e
pop esi
pop ebp
mov eax, 0x32
pop ebx
pop ecx
ret
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
pop esi
and ecx, 2
pop ebp
mov eax, ecx
pop ebx
pop ecx
ret
cmp eax, 2
je 0x5b3042
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret
mov ebp, 1
cmp dword [esi + 0x99e], ebx
jne 0x5b3059
cmp dword [esi + 0x3c], ebx
jne 0x5b3059
cmp dword [esi + 0x44], ebx
jne 0x5b3059
call fcn.005b2b90
cmp ebp, 1
jle 0x5b3065
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp dword [esi + 0x3c], ebx
je 0x5b307c
cmp dword [esi + 0x60], ebx
jne 0x5b309e
mov edx, dword [esi + 0xb0c]
mov eax, dword [esi + 0x5c]
cmp edx, eax
ja 0x5b309e
cmp dword [esi + 0x44], ebx
jne 0x5b309e
mov eax, dword [esi + 0x8cde]
mov ecx, dword [esi + 0xb04]
not eax
cmp eax, ecx
mov dword [esi + 0x8cde], eax
je 0x5b309e
mov ebp, 0x27
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret
pop esi
pop ebp
mov eax, 0x2a
pop ebx
pop ecx
ret