Function at 0x5ad2b0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 8
mov eax, dword [0x6eeaa0]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 8], ebp
jne 0x5ad2d6
mov eax, 4
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov ecx, dword [ebx]
mov dword [esp + 0x10], eax
sub ecx, 0x64
je 0x5ad58a
sub ecx, 0xa
je 0x5ad43c
sub ecx, 0x20
je 0x5ad30e
pop edi
mov dword [esp + 0xc], 0x2f
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop ebp
add esp, 8
ret
mov ebp, dword [esp + 0x1c]
mov ecx, dword [ebp]
sub ecx, 0x64
je 0x5ad425
sub ecx, 0xa
je 0x5ad35c
sub ecx, 0x20
je 0x5ad33c
pop edi
mov dword [esp + 0xc], 0x2f
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop ebp
add esp, 8
ret
mov ecx, 0x23
mov esi, ebx
mov edi, ebp
mov eax, dword [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov dword [ebp], 0x8e
pop ebx
pop ebp
add esp, 8
ret
mov ecx, 0x1b
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp], 0x6e
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x624]
mov dword [ebp + 0xc], edx
mov esi, dword [ecx + 0x624]
cmp esi, eax
je 0x5ad61d
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
je 0x5ad61d
mov cx, word [ecx]
lea esi, [edx + 0x12]
mov word [edx], cx
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + 2]
mov dword [edx + 2], ecx
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + 6]
mov dword [edx + 6], ecx
mov ecx, dword [ebx + 0xc]
mov cx, word [ecx + 0xa]
mov word [edx + 0xa], cx
mov ecx, dword [ebx + 0xc]
mov cx, word [ecx + 0xe]
mov word [edx + 0xc], cx
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + 0x10]
mov dword [edx + 0xe], ecx
mov ecx, dword [ebx + 0xc]
add ecx, 0x14
mov edi, dword [ecx]
mov dword [esi], edi
mov edi, dword [ecx + 4]
mov dword [esi + 4], edi
mov edi, dword [ecx + 8]
mov dword [esi + 8], edi
mov edi, dword [ecx + 0xc]
mov dword [esi + 0xc], edi
lea edi, [edx + 0x24]
mov cx, word [ecx + 0x10]
mov word [esi + 0x10], cx
mov esi, dword [ebx + 0xc]
add esi, 0x26
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov byte [edx + 0xa3], al
mov eax, dword [ebx + 0xc]
pop edi
pop esi
mov ecx, dword [eax + 0x12a]
mov eax, dword [esp + 8]
pop ebx
mov dword [edx + 0xa4], ecx
pop ebp
add esp, 8
ret
mov ecx, 0x19
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov dword [ebp], 0x64
jmp 0x5ad370
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
sub ecx, 0x64
je 0x5ad603
sub ecx, 0xa
je 0x5ad562
sub ecx, 0x20
je 0x5ad46d
pop edi
mov dword [esp + 0xc], 0x2f
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop ebp
add esp, 8
ret
mov ecx, 0x1b
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [edx], 0x8e
mov ecx, dword [esp + 0x14]
mov dword [edx + 0x6e], eax
mov dword [edx + 0x72], eax
mov dword [edx + 0x76], eax
mov dword [edx + 0x7a], eax
mov dword [edx + 0x7e], 0x699f70
mov dword [edx + 0x82], eax
mov dword [edx + 0x86], eax
mov dword [edx + 0x8a], eax
mov ebp, dword [ebx + 0xc]
mov dword [ecx + 0x624], ebp
mov esi, dword [ebx + 0xc]
cmp esi, eax
je 0x5ad61d
add ecx, 0x628
mov dword [edx + 0xc], ecx
mov si, word [ebp]
mov word [ecx], si
mov ecx, dword [edx + 0xc]
mov esi, dword [ebp + 2]
mov dword [ecx + 2], esi
mov ecx, dword [edx + 0xc]
mov esi, dword [ebp + 6]
mov dword [ecx + 6], esi
mov ecx, dword [edx + 0xc]
mov si, word [ebp + 0xa]
mov word [ecx + 0xa], si
mov ecx, dword [edx + 0xc]
mov si, word [ebp + 0xc]
mov word [ecx + 0xe], si
mov ecx, dword [edx + 0xc]
mov esi, dword [ebp + 0xe]
mov dword [ecx + 0x10], esi
mov esi, dword [edx + 0xc]
lea ecx, [ebp + 0x12]
add esi, 0x14
mov edi, dword [ecx]
mov dword [esi], edi
mov edi, dword [ecx + 4]
mov dword [esi + 4], edi
mov edi, dword [ecx + 8]
mov dword [esi + 8], edi
mov edi, dword [ecx + 0xc]
mov dword [esi + 0xc], edi
mov cx, word [ecx + 0x10]
mov word [esi + 0x10], cx
mov edi, dword [edx + 0xc]
lea esi, [ebp + 0x24]
add edi, 0x26
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [edx + 0xc]
mov esi, dword [ebp + 0xa4]
pop edi
mov dword [ecx + 0x12a], esi
mov ecx, dword [edx + 0xc]
pop esi
pop ebx
mov dword [ecx + 0x12e], eax
mov edx, dword [edx + 0xc]
pop ebp
mov dword [edx + 0x132], eax
mov eax, dword [esp]
add esp, 8
ret
mov ecx, 0x1b
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [edx], 0x6e
mov eax, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebp + 0x624], eax
mov eax, dword [esp + 8]
pop ebx
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx]
sub ecx, 0x64
je 0x5ad603
sub ecx, 0xa
je 0x5ad5d3
sub ecx, 0x20
je 0x5ad5b3
pop edi
mov dword [esp + 0xc], 0x2f
mov eax, dword [esp + 0xc]
pop esi
pop ebx
pop ebp
add esp, 8
ret
mov ecx, 0x19
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [edx], 0x8e
mov dword [edx + 0x64], eax
mov dword [edx + 0x68], eax
mov word [edx + 0x6c], ax
jmp 0x5ad480
mov ecx, 0x19
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [edx], 0x6e
mov dword [edx + 0x64], eax
mov dword [edx + 0x68], eax
mov word [edx + 0x6c], ax
mov eax, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebp + 0x624], eax
mov eax, dword [esp + 8]
pop ebx
pop ebp
add esp, 8
ret
mov ecx, 0x19
mov esi, ebx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [edx], 0x64
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0x624], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret