Function at 0x10032550
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10063c04]
push ebx
push ebp
push esi
push edi
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
test ebp, ebp
jne 0x1003257e
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
mov edx, dword [esp + 0x38]
mov ecx, dword [ebp + 0x167d0]
xor eax, eax
mov dword [esp + 0x14], ecx
mov ax, word [edx*2 + 0x1005bfc4]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov edi, dword [ebp + 0x167d8]
mov ebx, dword [ebp + 0x167dc]
xor eax, eax
mov ax, word [ecx*2 + 0x1005bfc4]
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
test eax, eax
jne 0x100328fc
mov eax, dword [ebp + 0x14f50]
test eax, eax
ja 0x100325db
mov al, byte [ebp + 0x14f5c]
test al, al
jne 0x100328fc
cmp ebx, dword [esp + 0x38]
jae 0x10032607
lea esi, [ebp + 0x167e0]
push ebp
push esi
call fcn.10033820
xor edx, edx
mov eax, dword [esp + 0x40]
mov dx, word [esi]
mov ecx, ebx
shl edx, cl
add ebx, 8
add esp, 8
or edi, edx
cmp ebx, eax
jb 0x100325e7
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
and eax, edi
xor edx, edx
mov dl, byte [ecx + eax*8]
lea eax, [ecx + eax*8]
mov esi, edx
mov dword [esp + 0x10], eax
cmp esi, 0x12
jbe 0x10032688
cmp esi, 0x63
je 0x10032571
xor ecx, ecx
sub esi, 0x12
mov cl, byte [eax + 1]
sub ebx, ecx
shr edi, cl
cmp ebx, esi
jae 0x10032667
lea eax, [ebp + 0x167e0]
push ebp
push eax
call fcn.10033820
xor eax, eax
mov ecx, ebx
mov ax, word [ebp + 0x167e0]
add ebx, 8
shl eax, cl
add esp, 8
or edi, eax
cmp ebx, esi
jb 0x1003263d
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
xor ecx, ecx
mov cx, word [esi*2 + 0x1005bfc4]
and ecx, edi
lea eax, [edx + ecx*8]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cl, byte [eax]
mov esi, ecx
cmp esi, 0x12
ja 0x10032624
xor ecx, ecx
mov cl, byte [eax + 1]
shr edi, cl
sub ebx, ecx
cmp esi, 0x12
jne 0x100326d3
mov dl, byte [eax + 4]
mov eax, dword [esp + 0x14]
mov byte [eax + ebp + 0x4f34], dl
inc eax
cmp eax, 0x10000
mov dword [esp + 0x14], eax
jne 0x100328f2
push ebp
push eax
call fcn.100324a0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1003292b
mov dword [esp + 0x14], eax
jmp 0x100328f2
cmp esi, 0x11
je 0x100328fc
cmp ebx, esi
jae 0x1003270a
lea eax, [ebp + 0x167e0]
push ebp
push eax
call fcn.10033820
xor eax, eax
mov ecx, ebx
mov ax, word [ebp + 0x167e0]
add ebx, 8
shl eax, cl
add esp, 8
or edi, eax
cmp ebx, esi
jb 0x100326e0
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor edx, edx
mov cx, word [esi*2 + 0x1005bfc4]
mov dx, word [eax + 4]
mov eax, dword [esp + 0x3c]
and ecx, edi
add ecx, edx
sub ebx, esi
mov dword [esp + 0x1c], ecx
mov ecx, esi
shr edi, cl
cmp ebx, eax
jae 0x10032756
lea esi, [ebp + 0x167e0]
push ebp
push esi
call fcn.10033820
xor eax, eax
mov ecx, ebx
mov ax, word [esi]
add ebx, 8
shl eax, cl
add esp, 8
or edi, eax
mov eax, dword [esp + 0x3c]
cmp ebx, eax
jb 0x10032736
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
and ecx, edi
xor eax, eax
mov al, byte [edx + ecx*8]
lea edx, [edx + ecx*8]
mov esi, eax
mov dword [esp + 0x10], edx
cmp esi, 0x12
jbe 0x100327dc
cmp esi, 0x63
je 0x10032571
xor ecx, ecx
sub esi, 0x12
mov cl, byte [edx + 1]
sub ebx, ecx
shr edi, cl
cmp ebx, esi
jae 0x100327b8
lea eax, [ebp + 0x167e0]
push ebp
push eax
call fcn.10033820
xor ecx, ecx
add esp, 8
mov cx, word [ebp + 0x167e0]
mov edx, ecx
mov ecx, ebx
shl edx, cl
add ebx, 8
or edi, edx
cmp ebx, esi
jb 0x1003278c
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
xor eax, eax
mov ax, word [esi*2 + 0x1005bfc4]
xor edx, edx
and eax, edi
mov dl, byte [ecx + eax*8]
lea eax, [ecx + eax*8]
mov esi, edx
mov dword [esp + 0x10], eax
cmp esi, 0x12
mov edx, eax
ja 0x10032773
xor ecx, ecx
mov cl, byte [edx + 1]
sub ebx, ecx
shr edi, cl
cmp ebx, esi
jae 0x10032813
lea eax, [ebp + 0x167e0]
push ebp
push eax
call fcn.10033820
xor eax, eax
mov ecx, ebx
mov ax, word [ebp + 0x167e0]
add ebx, 8
shl eax, cl
add esp, 8
or edi, eax
cmp ebx, esi
jb 0x100327e9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov cx, word [esi*2 + 0x1005bfc4]
and ecx, edi
sub eax, ecx
xor ecx, ecx
mov cx, word [edx + 4]
sub eax, ecx
mov ecx, esi
shr edi, cl
sub ebx, esi
mov dword [esp + 0x28], edi
mov edx, dword [esp + 0x14]
and eax, 0xffff
cmp eax, edx
mov ecx, eax
ja 0x10032848
mov ecx, edx
mov esi, 0x10000
sub esi, ecx
mov ecx, dword [esp + 0x1c]
cmp esi, ecx
mov dword [esp + 0x10], esi
jbe 0x10032861
mov esi, ecx
mov dword [esp + 0x10], esi
sub ecx, esi
mov dword [esp + 0x1c], ecx
mov ecx, edx
sub ecx, eax
cmp ecx, esi
jb 0x100328a9
mov ecx, esi
lea edi, [edx + ebp + 0x4f34]
mov edx, ecx
lea esi, [eax + ebp + 0x4f34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
add esi, ecx
add eax, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov edx, esi
jmp 0x100328c4
mov cl, byte [eax + ebp + 0x4f34]
mov byte [edx + ebp + 0x4f34], cl
inc edx
inc eax
dec esi
jne 0x100328a9
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp edx, 0x10000
jne 0x100328e6
push ebp
push edx
call fcn.100324a0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1003292b
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x10032837
cmp dword [ebp], 0
je 0x100325c3
mov eax, dword [ebp + 0x4c]
mov edx, dword [esp + 0x14]
test eax, eax
mov dword [ebp + 0x167d0], edx
mov dword [ebp + 0x167d8], edi
mov dword [ebp + 0x167dc], ebx
jne 0x1003292b
mov al, byte [ebp + 0x14f5c]
test al, al
je 0x1003292b
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret