Function at 0x63235000
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6325fbe0]
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x63235028
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
xor eax, eax
xor edi, edi
mov ax, word [ecx*2 + 0x63258388]
mov ecx, dword [ebx + 0x4558]
mov dword [esp + 0x28], eax
xor eax, eax
mov ax, word [edx*2 + 0x63258388]
xor ebp, ebp
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x455c]
cmp eax, esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jl 0x6323554d
jg 0x63235086
cmp ecx, esi
jbe 0x6323554d
cmp dword [ebx], esi
jne 0x6323554d
cmp ebp, 1
jae 0x632350c0
lea esi, [ebx + 0x16828]
push ebx
push esi
call fcn.632314b0
mov edx, dword [esp + 0x18]
xor eax, eax
mov ax, word [esi]
mov ecx, ebp
shl eax, cl
add ebp, 8
add esp, 8
or edx, eax
cmp ebp, 1
mov dword [esp + 0x10], edx
jb 0x63235099
xor esi, esi
test byte [esp + 0x10], 1
je 0x6323517c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
shr ecx, 1
or eax, 0xffffffff
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
dec ebp
add edx, eax
adc ecx, eax
mov eax, dword [ebx + 0x54]
cmp eax, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], ecx
je 0x63235109
cmp dword [ebx + 0x5c], esi
je 0x63235109
cmp dword [ebx + 0x14f98], esi
ja 0x63235109
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp ebp, 8
jae 0x6323513d
lea esi, [ebx + 0x16828]
push ebx
push esi
call fcn.632314b0
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov cx, word [esi]
add esp, 8
mov edx, ecx
mov ecx, ebp
shl edx, cl
add ebp, 8
or eax, edx
cmp ebp, 8
mov dword [esp + 0x10], eax
jb 0x63235114
xor esi, esi
mov al, byte [esp + 0x10]
mov byte [edi + ebx + 0x4f7c], al
inc edi
cmp edi, 0x8000
mov dword [esp + 0x14], edi
jne 0x63235169
push ebx
push edi
call fcn.63233030
add esp, 8
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], esi
mov edi, esi
mov ecx, dword [esp + 0x10]
shr ecx, 8
mov dword [esp + 0x10], ecx
sub ebp, 8
jmp 0x63235537
mov edx, dword [esp + 0x10]
shr edx, 1
dec ebp
mov dword [esp + 0x10], edx
cmp ebp, 6
jae 0x632351b9
lea esi, [ebx + 0x16828]
push ebx
push esi
call fcn.632314b0
xor ecx, ecx
mov edi, dword [esp + 0x18]
mov cx, word [esi]
add esp, 8
mov edx, ecx
mov ecx, ebp
shl edx, cl
add ebp, 8
or edi, edx
cmp ebp, 6
mov dword [esp + 0x10], edi
jb 0x63235192
mov ecx, dword [esp + 0x10]
sub ebp, 6
mov eax, ecx
and eax, 0x3f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
shr ecx, 6
cmp ebp, eax
mov dword [esp + 0x10], ecx
jae 0x63235206
lea esi, [ebx + 0x16828]
push ebx
push esi
call fcn.632314b0
mov edx, dword [esp + 0x18]
xor eax, eax
mov ax, word [esi]
mov ecx, ebp
shl eax, cl
add ebp, 8
add esp, 8
or edx, eax
mov eax, dword [esp + 0x44]
cmp ebp, eax
mov dword [esp + 0x10], edx
jb 0x632351de
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
not ecx
and ecx, edx
mov edx, dword [esp + 0x3c]
xor eax, eax
mov al, byte [edx + ecx*8]
lea edi, [edx + ecx*8]
mov esi, eax
mov dword [esp + 0x18], edi
cmp esi, 0x10
jbe 0x632352a4
cmp esi, 0x63
je 0x63235581
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edi + 1]
sub esi, 0x10
shr eax, cl
sub ebp, ecx
cmp ebp, esi
mov dword [esp + 0x10], eax
jae 0x6323527a
lea edi, [ebx + 0x16828]
push ebx
push edi
call fcn.632314b0
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov cx, word [edi]
add esp, 8
mov edx, ecx
mov ecx, ebp
shl edx, cl
add ebp, 8
or eax, edx
cmp ebp, esi
mov dword [esp + 0x10], eax
jb 0x63235250
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
xor eax, eax
mov ax, word [esi*2 + 0x63258388]
not ecx
and eax, ecx
xor ecx, ecx
mov cl, byte [edx + eax*8]
lea eax, [edx + eax*8]
mov esi, ecx
cmp esi, 0x10
mov dword [esp + 0x18], eax
mov edi, eax
ja 0x63235229
xor edx, edx
xor eax, eax
mov dl, byte [edi + 1]
mov ax, word [edi + 4]
mov edi, dword [esp + 0x14]
mov esi, edx
mov edx, dword [esp + 0x10]
mov ecx, esi
shr edx, cl
mov ecx, dword [esp + 0x1c]
sub edi, eax
mov eax, dword [esp + 0x40]
sub ebp, esi
sub edi, ecx
cmp ebp, eax
mov dword [esp + 0x10], edx
jae 0x63235303
lea esi, [ebx + 0x16828]
push ebx
push esi
call fcn.632314b0
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov cx, word [esi]
add esp, 8
mov edx, ecx
mov ecx, ebp
shl edx, cl
add ebp, 8
or eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
cmp ebp, eax
jb 0x632352d9
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
not eax
and eax, edx
xor edx, edx
mov dl, byte [ecx + eax*8]
lea eax, [ecx + eax*8]
mov esi, edx
cmp esi, 0x10
mov dword [esp + 0x18], eax
jbe 0x632353a4
cmp esi, 0x63
je 0x63235581
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [eax + 1]
sub esi, 0x10
shr edx, cl
sub ebp, ecx
mov dword [esp + 0x1c], ecx
cmp ebp, esi
mov dword [esp + 0x10], edx
jae 0x6323537d
lea eax, [ebx + 0x16828]
push ebx
push eax
call fcn.632314b0
mov edx, dword [esp + 0x18]
xor eax, eax
mov ax, word [ebx + 0x16828]
mov ecx, ebp
shl eax, cl
add ebp, 8
add esp, 8
or edx, eax
cmp ebp, esi
mov dword [esp + 0x10], edx
jb 0x6323534b
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 4]
xor ecx, ecx
mov cx, word [esi*2 + 0x63258388]
not edx
and ecx, edx
lea eax, [eax + ecx*8]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov cl, byte [eax]
mov esi, ecx
cmp esi, 0x10
ja 0x63235326
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [eax + 1]
shr edx, cl
mov dword [esp + 0x1c], ecx
sub ebp, ecx
xor ecx, ecx
mov cx, word [eax + 4]
mov dword [esp + 0x10], edx
xor edx, edx
cmp esi, edx
mov dword [esp + 0x18], ecx
je 0x63235417
cmp ebp, 8
jae 0x632353ff
lea esi, [ebx + 0x16828]
push ebx
push esi
call fcn.632314b0
mov eax, dword [esp + 0x18]
xor edx, edx
mov dx, word [esi]
mov ecx, ebp
shl edx, cl
add ebp, 8
add esp, 8
or eax, edx
cmp ebp, 8
mov dword [esp + 0x10], eax
jb 0x632353d4
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, dword [esp + 0x10]
mov esi, eax
and esi, 0xff
shr eax, 8
add ecx, esi
mov dword [esp + 0x10], eax
sub ebp, 8
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x54]
sbb esi, edx
cmp eax, edx
mov dword [esp + 0x30], esi
je 0x63235447
cmp dword [ebx + 0x5c], edx
je 0x63235447
cmp dword [ebx + 0x14f98], edx
ja 0x63235447
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x14]
and edi, 0x7fff
cmp edi, eax
mov dword [esp + 0x1c], edi
mov esi, edi
ja 0x6323545d
mov esi, eax
mov edx, 0x8000
sub edx, esi
cmp edx, ecx
jbe 0x6323546a
mov edx, ecx
sub ecx, edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x632354ad
cmp eax, edi
ja 0x632354ad
mov esi, dword [esp + 0x14]
mov ecx, edx
xor eax, eax
lea edi, [esi + ebx + 0x4f7c]
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
add ecx, edx
add edi, edx
mov dword [esp + 0x14], ecx
mov eax, ecx
jmp 0x63235506
mov ecx, eax
sub ecx, edi
cmp ecx, edx
jb 0x632354ef
mov ecx, edx
lea esi, [ebx + edi + 0x4f7c]
lea edi, [ebx + eax + 0x4f7c]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
add ecx, edx
add eax, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x1c]
mov eax, ecx
jmp 0x63235506
mov cl, byte [ebx + edi + 0x4f7c]
mov byte [ebx + eax + 0x4f7c], cl
inc eax
inc edi
dec edx
jne 0x632354ef
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
cmp eax, 0x8000
jne 0x63235529
push ebx
push eax
call fcn.63233030
mov ecx, dword [esp + 0x20]
add esp, 8
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x63235447
mov edi, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x30], esi
jg 0x63235086
jl 0x6323554d
cmp dword [esp + 0x2c], esi
ja 0x63235086
push ebx
push edi
call fcn.63233030
mov eax, dword [ebx + 0x54]
add esp, 8
cmp eax, esi
jne 0x6323558e
mov edx, dword [ebx + 0x4550]
mov eax, dword [ebx + 0x4554]
add ebx, 0x4550
or edx, eax
je 0x6323558e
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret