Function at 0x100329d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [ebx + 0x167dc]
push edi
mov edi, dword [ebx + 0x167d8]
cmp esi, 1
jae 0x10032a0d
lea ebp, [ebx + 0x167e0]
push ebx
push ebp
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [ebp]
add esi, 8
shl eax, cl
add esp, 8
or edi, eax
cmp esi, 1
jb 0x100329ef
mov edx, dword [esp + 0x14]
mov ecx, edi
and ecx, 1
shr edi, 1
dec esi
mov dword [edx], ecx
cmp esi, 2
jae 0x10032a44
lea ebp, [ebx + 0x167e0]
push ebx
push ebp
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [ebp]
add esi, 8
shl eax, cl
add esp, 8
or edi, eax
cmp esi, 2
jb 0x10032a26
mov eax, edi
add esi, 0xfffffffe
shr edi, 2
mov dword [ebx + 0x167d8], edi
and eax, 3
mov dword [ebx + 0x167dc], esi
pop edi
pop esi
pop ebp
cmp eax, 2
pop ebx
jne 0x10032a69
jmp 0x10032d70
test eax, eax
jne 0x10032a72
jmp 0x10032a90
cmp eax, 1
jne 0x10032a7c
jmp 0x10032c00
mov eax, 2
ret
sub esp, 0xc
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 edi, eax
test edi, edi
jne 0x10032abe
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
mov ecx, dword [edi + 0x167d0]
mov esi, dword [edi + 0x167dc]
mov ebx, dword [edi + 0x167d8]
mov dword [esp + 0x10], ecx
mov ecx, esi
and ecx, 7
sub esi, ecx
shr ebx, cl
cmp esi, 0x10
jae 0x10032b06
lea ebp, [edi + 0x167e0]
push edi
push ebp
call fcn.10033820
xor edx, edx
mov ecx, esi
mov dx, word [ebp]
add esi, 8
shl edx, cl
add esp, 8
or ebx, edx
cmp esi, 0x10
jb 0x10032ae8
mov eax, ebx
sub esi, 0x10
and eax, 0xffff
shr ebx, 0x10
cmp esi, 0x10
mov dword [esp + 0x14], eax
jae 0x10032b40
lea ebp, [edi + 0x167e0]
push edi
push ebp
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [ebp]
add esi, 8
shl eax, cl
add esp, 8
or ebx, eax
cmp esi, 0x10
jb 0x10032b22
mov eax, dword [esp + 0x14]
mov ecx, ebx
not ecx
and ecx, 0xffff
cmp eax, ecx
je 0x10032b5f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
mov eax, dword [edi]
sub esi, 0x10
shr ebx, 0x10
test eax, eax
jne 0x10032bdc
mov eax, dword [esp + 0x14]
mov edx, eax
dec eax
test edx, edx
mov dword [esp + 0x14], eax
je 0x10032bdc
cmp esi, 8
jae 0x10032ba3
lea ebp, [edi + 0x167e0]
push edi
push ebp
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [ebp]
add esi, 8
shl eax, cl
add esp, 8
or ebx, eax
cmp esi, 8
jb 0x10032b85
mov eax, dword [esp + 0x10]
mov byte [eax + edi + 0x4f34], bl
inc eax
cmp eax, 0x10000
mov dword [esp + 0x10], eax
jne 0x10032bd0
push edi
push eax
call fcn.100324a0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10032bf2
mov dword [esp + 0x10], eax
mov eax, dword [edi]
sub esi, 8
shr ebx, 8
test eax, eax
je 0x10032b6b
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x167d8], ebx
mov dword [edi + 0x167d0], ecx
mov dword [edi + 0x167dc], esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x10063c04]
sub esp, 0x480
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10032c2c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x480
ret
mov eax, dword [esi + 0x14f38]
lea ebx, [esi + 0x14f38]
test eax, eax
jne 0x10032d38
mov ecx, 0x90
mov eax, 8
lea edi, [esp + 0x10]
mov dword [esi + 0x14f40], 7
rep stosd dword es:[edi], eax
mov ecx, 0x70
mov eax, 9
lea edi, [esp + 0x250]
rep stosd dword es:[edi], eax
mov ecx, 0x18
mov eax, 7
lea edi, [esp + 0x410]
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x470]
mov eax, ecx
rep stosd dword es:[edi], eax
lea eax, [esi + 0x14f40]
lea ecx, [esp + 0x10]
push eax
push ebx
push 0x1005c3b4
push 0x1005c334
push 0x101
push 0x120
push ecx
call fcn.10031fc0
add esp, 0x1c
test eax, eax
je 0x10032cce
pop edi
pop esi
mov dword [ebx], 0
pop ebp
pop ebx
add esp, 0x480
ret
mov ecx, 0x20
mov eax, 5
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esi + 0x14f44]
lea edi, [esi + 0x14f3c]
push eax
push edi
push 0x1005c3f4
push 0x1005c374
push 0
push 0x20
push edx
mov dword [eax], 5
call fcn.10031fc0
mov ebp, eax
add esp, 0x1c
cmp ebp, 1
jle 0x10032d38
mov eax, dword [ebx]
push eax
call fcn.10035310
add esp, 4
mov dword [edi], 0
mov eax, ebp
mov dword [ebx], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x480
ret
mov ecx, dword [esi + 0x14f44]
mov edx, dword [esi + 0x14f40]
mov eax, dword [esi + 0x14f3c]
push ecx
mov ecx, dword [ebx]
push edx
push eax
push ecx
call fcn.10032550
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x480
ret
mov eax, dword [0x10063c04]
sub esp, 0x520
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
test ebp, ebp
je 0x1003329b
mov esi, dword [ebp + 0x167dc]
mov ebx, dword [ebp + 0x167d8]
cmp esi, 5
jae 0x10032dc6
lea edi, [ebp + 0x167e0]
push ebp
push edi
call fcn.10033820
xor ecx, ecx
add esp, 8
mov cx, word [edi]
mov edx, ecx
mov ecx, esi
shl edx, cl
add esi, 8
or ebx, edx
cmp esi, 5
jb 0x10032da7
mov edx, ebx
sub esi, 5
and edx, 0x1f
add edx, 0x101
shr ebx, 5
cmp esi, 5
mov dword [esp + 0x24], edx
jae 0x10032e07
lea edi, [ebp + 0x167e0]
push ebp
push edi
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [edi]
add esi, 8
shl eax, cl
add esp, 8
or ebx, eax
cmp esi, 5
jb 0x10032de6
mov edx, dword [esp + 0x24]
mov ecx, ebx
sub esi, 5
and ecx, 0x1f
inc ecx
shr ebx, 5
cmp esi, 4
mov dword [esp + 0x2c], ecx
jae 0x10032e49
lea edi, [ebp + 0x167e0]
push ebp
push edi
call fcn.10033820
xor ecx, ecx
add esp, 8
mov cx, word [edi]
mov edx, ecx
mov ecx, esi
shl edx, cl
add esi, 8
or ebx, edx
cmp esi, 4
jb 0x10032e22
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov eax, ebx
sub esi, 4
and eax, 0xf
add eax, 4
shr ebx, 4
cmp edx, 0x11e
mov dword [esp + 0x10], eax
ja 0x1003329b
cmp ecx, 0x20
ja 0x1003329b
xor ecx, ecx
test eax, eax
jbe 0x10032ee2
mov dword [esp + 0x20], 0x1005c268
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
cmp esi, 3
jae 0x10032eb2
lea edi, [ebp + 0x167e0]
push ebp
push edi
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [edi]
add esi, 8
shl eax, cl
add esp, 8
or ebx, eax
cmp esi, 3
jb 0x10032e91
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, ebx
and edx, 7
sub esi, 3
mov edi, dword [ecx]
add ecx, 4
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1c]
shr ebx, 3
dec ecx
mov dword [esp + edi*4 + 0x38], edx
mov dword [esp + 0x1c], ecx
jne 0x10032e86
cmp eax, 0x13
jae 0x10032efb
mov ecx, dword [esp + 0x30]
lea eax, [ecx*4 + 0x1005c268]
xor ecx, ecx
mov edx, dword [eax]
add eax, 4
cmp eax, 0x1005c2b4
mov dword [esp + edx*4 + 0x38], ecx
jb 0x10032eeb
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0x13
lea edx, [esp + 0x4c]
push 0x13
push edx
mov dword [esp + 0x34], 7
call fcn.10031fc0
mov edi, eax
mov eax, dword [esp + 0x34]
add esp, 0x1c
test eax, eax
jne 0x10032f4b
mov eax, dword [esp + 0x14]
mov edi, 1
push eax
call fcn.10035310
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
test edi, edi
je 0x10032f6e
cmp edi, 1
jne 0x10032f61
mov eax, dword [esp + 0x14]
push eax
call fcn.10035310
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
add ecx, edx
xor edx, edx
mov dx, word [eax*2 + 0x1005bfc4]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
jbe 0x1003314f
jmp 0x10032fa2
mov eax, dword [esp + 0x18]
cmp esi, eax
jae 0x10032fd0
lea eax, [ebp + 0x167e0]
push ebp
push eax
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [ebp + 0x167e0]
add esi, 8
shl eax, cl
add esp, 8
or ebx, eax
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x10032fa6
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
and ecx, ebx
xor eax, eax
lea edx, [edx + ecx*8]
xor ecx, ecx
mov dword [esp + 0x28], edx
mov cl, byte [edx + 1]
mov ax, word [edx + 4]
shr ebx, cl
sub esi, ecx
cmp eax, 0x10
jae 0x10033007
mov dword [esp + edi*4 + 0x38], eax
inc edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
jmp 0x10033145
jne 0x1003307d
cmp esi, 2
jae 0x10033035
lea eax, [ebp + 0x167e0]
push ebp
push eax
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [ebp + 0x167e0]
add esi, 8
shl eax, cl
add esp, 8
or ebx, eax
cmp esi, 2
jb 0x1003300e
mov edx, dword [esp + 0x20]
mov eax, ebx
and eax, 3
sub esi, 2
add eax, 3
shr ebx, 2
lea ecx, [edi + eax]
cmp ecx, edx
ja 0x1003329b
mov edx, eax
dec eax
test edx, edx
je 0x10033145
lea edx, [eax + 1]
mov eax, dword [esp + 0x1c]
lea edi, [esp + edi*4 + 0x38]
mov ecx, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x10], eax
mov edi, eax
jmp 0x10033145
cmp eax, 0x11
jne 0x100330d4
cmp esi, 3
jae 0x100330ae
lea eax, [ebp + 0x167e0]
push ebp
push eax
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [ebp + 0x167e0]
add esi, 8
shl eax, cl
add esp, 8
or ebx, eax
cmp esi, 3
jb 0x10033087
mov edx, dword [esp + 0x20]
mov eax, ebx
and eax, 7
sub esi, 3
add eax, 3
shr ebx, 3
lea ecx, [edi + eax]
cmp ecx, edx
ja 0x1003329b
mov edx, eax
dec eax
test edx, edx
je 0x1003313d
jmp 0x10033124
cmp esi, 7
jae 0x10033100
lea eax, [ebp + 0x167e0]
push ebp
push eax
call fcn.10033820
xor eax, eax
mov ecx, esi
mov ax, word [ebp + 0x167e0]
add esi, 8
shl eax, cl
add esp, 8
or ebx, eax
cmp esi, 7
jb 0x100330d9
mov edx, dword [esp + 0x20]
mov eax, ebx
and eax, 0x7f
sub esi, 7
add eax, 0xb
shr ebx, 7
lea ecx, [edi + eax]
cmp ecx, edx
ja 0x1003329b
mov edx, eax
dec eax
test edx, edx
je 0x1003313d
lea edx, [eax + 1]
lea edi, [esp + edi*4 + 0x38]
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x10], eax
mov edi, eax
mov dword [esp + 0x1c], 0
cmp edi, dword [esp + 0x20]
jb 0x10032f9e
mov eax, dword [esp + 0x14]
push eax
call fcn.10035310
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
mov dword [ebp + 0x167d8], ebx
mov dword [ebp + 0x167dc], esi
mov ecx, dword [0x1005c434]
push edx
push eax
push 0x1005c3b4
mov dword [esp + 0x28], ecx
push 0x1005c334
push 0x101
lea ecx, [esp + 0x50]
push edi
push ecx
call fcn.10031fc0
mov esi, eax
mov eax, dword [esp + 0x38]
add esp, 0x20
test eax, eax
jne 0x100331c3
mov edx, dword [esp + 0x14]
mov esi, 1
push edx
call fcn.10035310
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
test esi, esi
je 0x100331e6
cmp esi, 1
jne 0x100331d9
mov edx, dword [esp + 0x14]
push edx
call fcn.10035310
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
mov eax, dword [0x1005c438]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
push 0x1005c3f4
push 0x1005c374
push 0
lea ecx, [esp + edi*4 + 0x4c]
push eax
push ecx
call fcn.10031fc0
mov esi, eax
mov eax, dword [esp + 0x50]
add esp, 0x1c
test eax, eax
jne 0x10033230
cmp edi, 0x101
jbe 0x10033230
mov esi, 1
jmp 0x10033239
test esi, esi
je 0x10033260
cmp esi, 1
jne 0x10033246
mov edx, dword [esp + 0x28]
push edx
call fcn.10035310
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.10035310
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.10032550
mov ecx, dword [esp + 0x24]
mov esi, eax
push ecx
call fcn.10035310
mov edx, dword [esp + 0x3c]
push edx
call fcn.10035310
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x520
ret